Changeset 04803bf in mainline for uspace/app/dltest/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/app/dltest/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 BINARY = dltest 30 31 31 ## Setup toolchain32 #33 34 LIBC_PREFIX = ../../lib/libc35 SOFTINT_PREFIX = ../../lib/softint36 37 include $(LIBC_PREFIX)/Makefile.toolchain38 39 CFLAGS += -I../../lib/libc -O040 LFLAGS := -Bdynamic -I/lib/rtld -rpath-link $(LIBC_PREFIX)/shared41 42 LIBS = $(LIBC_PREFIX)/shared/libc.so.043 44 ## Sources45 #46 47 OUTPUT = dltest48 32 SOURCES = \ 49 33 dltest.c 50 34 51 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 52 53 .PHONY: all clean depend disasm 54 55 all: $(OUTPUT) disasm 56 57 -include Makefile.depend 58 59 clean: 60 -rm -f $(OUTPUT) $(OBJECTS) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend arch/$(UARCH)/_link.ld 61 62 depend: 63 $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend 64 65 $(OUTPUT): $(OBJECTS) $(LIBS) 66 $(LD) -T $(LIBC_PREFIX)/shared/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 67 68 disasm: 69 $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm 70 71 %.o: %.S 72 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ 73 74 %.o: %.s 75 $(AS) $(AFLAGS) $< -o $@ 76 77 %.o: %.c 78 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 35 include $(USPACE_PREFIX)/Makefile.common
Note:
See TracChangeset
for help on using the changeset viewer.