Changeset 04803bf in mainline for uspace/lib/libtest/Makefile
- Timestamp:
- 2011-03-21T22:00:17Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 143932e
- Parents:
- b50b5af2 (diff), 7308e84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libtest/Makefile
rb50b5af2 r04803bf 1 1 # 2 # Copyright (c) 20 05 Martin Decky2 # Copyright (c) 2011 Jiri Svoboda 3 3 # All rights reserved. 4 4 # … … 27 27 # 28 28 29 include ../../../version 29 USPACE_PREFIX = ../.. 30 LIBRARY = libtest 30 31 31 ## Setup toolchain 32 # 33 34 LIBC_PREFIX = ../../lib/libc 35 SOFTINT_PREFIX = ../../lib/softint 36 include $(LIBC_PREFIX)/Makefile.toolchain 37 #include arch/$(ARCH)/Makefile.inc 38 ARCH_SOURCES := 39 40 CFLAGS += -I../../srv/kbd/include -I../../srv/console -Iinclude -fPIC -O0 41 LFLAGS = \ 42 -shared --no-undefined -soname libtest.so.0 \ 43 -Bdynamic -I/app/dload 44 45 #LIBS = $(LIBC_PREFIX)/shared/libc.so.0 46 LIBS = 47 48 DEFS += -DRELEASE=\"$(RELEASE)\" 49 50 ## Sources 51 # 52 53 OUTPUT = libtest.so 54 GENERIC_SOURCES = \ 32 SOURCES = \ 55 33 libtest.c 56 34 57 GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) 58 ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES))) 59 60 .PHONY: all clean depend disasm sections inc 61 62 all: $(OUTPUT) disasm sections 63 64 inc: 65 ln -sfn ../arch/$(UARCH)/include include/arch 66 67 -include Makefile.depend 68 69 clean: 70 -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm $(OUTPUT).sections Makefile.depend *.o arch/$(UARCH)/_link.ld 71 find arch/$(UARCH)/ -name '*.o' -follow -exec rm \{\} \; 72 73 depend: 74 $(CC) $(DEFS) $(CFLAGS) -M $(ARCH_SOURCES) $(GENERIC_SOURCES)> Makefile.depend 75 76 $(OUTPUT): $(ARCH_OBJECTS) $(GENERIC_OBJECTS) $(LIBS) arch/$(UARCH)/_link.ld 77 $(LD) -T arch/$(UARCH)/_link.ld $(ARCH_OBJECTS) $(GENERIC_OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 78 79 disasm: 80 $(OBJDUMP) -d -S -s $(OUTPUT) >$(OUTPUT).disasm 81 82 sections: 83 $(OBJDUMP) -h $(OUTPUT) >$(OUTPUT).sections 84 85 arch/$(UARCH)/_link.ld: arch/$(UARCH)/_link.ld.in 86 $(CC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@ 87 88 %.o: %.S 89 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ 90 91 %.o: %.s 92 $(AS) $(AFLAGS) $< -o $@ 93 94 %.o: %.c 95 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 35 include $(USPACE_PREFIX)/Makefile.common
Note:
See TracChangeset
for help on using the changeset viewer.