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