Changeset fcd7053 in mainline for uspace/lib/libc/Makefile
- Timestamp:
- 2009-02-12T20:11:25Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fa024ce
- Parents:
- 84266669
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/Makefile
r84266669 rfcd7053 30 30 # 31 31 32 -include ../../../Makefile.config33 34 32 LIBC_PREFIX = $(shell pwd) 35 33 SOFTINT_PREFIX = ../softint 34 35 ifndef CROSS_PREFIX 36 CROSS_PREFIX = /usr/local 37 endif 38 36 39 37 40 ## Setup toolchain … … 40 43 include $(LIBC_PREFIX)/Makefile.toolchain 41 44 45 42 46 ## Sources 43 47 # 44 45 48 46 49 GENERIC_SOURCES = \ … … 88 91 89 92 ARCH_SOURCES += \ 90 arch/$( ARCH)/src/entry.s \91 arch/$( ARCH)/src/thread_entry.s93 arch/$(UARCH)/src/entry.s \ 94 arch/$(UARCH)/src/thread_entry.s 92 95 93 96 GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) … … 97 100 .PHONY: all clean depend kerninc 98 101 99 all: kerninc libc.a arch/$( ARCH)/_link.ld102 all: kerninc libc.a arch/$(UARCH)/_link.ld 100 103 101 104 kerninc: 102 105 ln -sfn ../../../../kernel/generic/include include/kernel 103 106 ln -sfn kernel/arch include/arch 104 ln -sfn ../arch/$( ARCH)/include include/libarch107 ln -sfn ../arch/$(UARCH)/include include/libarch 105 108 106 109 -include Makefile.depend 107 110 108 111 clean: 109 -rm -f include/kernel include/arch include/libarch libc.a arch/$( ARCH)/_link.ld Makefile.depend110 find generic/ arch/$( ARCH)/ malloc -name '*.o' -follow -exec rm \{\} \;112 -rm -f include/kernel include/arch include/libarch libc.a arch/$(UARCH)/_link.ld Makefile.depend 113 find generic/ arch/$(UARCH)/ malloc -name '*.o' -follow -exec rm \{\} \; 111 114 112 115 depend: kerninc 113 -makedepend -f - -- $(DE FS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null116 -makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null 114 117 115 118 libc.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS) 116 119 $(AR) rc libc.a $(LIBS) $(ARCH_OBJECTS) $(GENERIC_OBJECTS) 117 120 118 arch/$( ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in121 arch/$(UARCH)/_link.ld: arch/$(UARCH)/_link.ld.in 119 122 $(CC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@ 120 123
Note:
See TracChangeset
for help on using the changeset viewer.