Changeset 04803bf in mainline for uspace/app/dload/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/dload/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 LIBS = 31 EXTRA_CFLAGS = -I../../srv/loader/include -I../../lib/c/rtld/include -Iinclude 32 BINARY = dload 30 33 31 ## Setup toolchain 32 # 33 34 LIBC_PREFIX = ../../lib/libc 35 SOFTINT_PREFIX = ../../lib/softint 36 37 include $(LIBC_PREFIX)/Makefile.toolchain 34 include $(USPACE_PREFIX)/../Makefile.config 38 35 include arch/$(UARCH)/Makefile.inc 39 36 40 CFLAGS += -Iinclude -I../../srv/loader/include -I../../lib/libc/rtld/include -O0 -ggdb 41 LFLAGS += 37 SOURCES = \ 38 dload.c \ 39 $(ARCH_SOURCES) 42 40 43 LIBS = $(LIBC_PREFIX)/libc.a $(SOFTINT_PREFIX)/libsoftint.a 44 DEFS += -DRELEASE=\"$(RELEASE)\" 45 46 ## Sources 47 # 48 49 OUTPUT = dload 50 GENERIC_SOURCES = \ 51 dload.c 52 53 GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) 54 ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES))) 55 56 .PHONY: all clean depend disasm sections inc 57 58 all: inc $(OUTPUT) disasm sections 59 60 inc: 61 ln -sfn ../arch/$(UARCH)/include include/arch 62 63 -include Makefile.depend 64 65 clean: 66 -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm $(OUTPUT).sections Makefile.depend *.o arch/$(UARCH)/_link.ld include/arch 67 find arch/$(UARCH)/ -name '*.o' -follow -exec rm \{\} \; 68 69 depend: 70 $(CC) $(DEFS) $(CFLAGS) -M $(ARCH_SOURCES) $(GENERIC_SOURCES)> Makefile.depend 71 72 $(OUTPUT): $(ARCH_OBJECTS) $(GENERIC_OBJECTS) $(LIBS) arch/$(UARCH)/_link.ld 73 $(LD) -T arch/$(UARCH)/_link.ld $(ARCH_OBJECTS) $(GENERIC_OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 74 75 disasm: 76 $(OBJDUMP) -d -S -s $(OUTPUT) >$(OUTPUT).disasm 77 78 sections: 79 $(OBJDUMP) -h $(OUTPUT) >$(OUTPUT).sections 80 81 arch/$(UARCH)/_link.ld: arch/$(UARCH)/_link.ld.in 82 $(CC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@ 83 84 %.o: %.S 85 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ 86 87 %.o: %.s 88 $(AS) $(AFLAGS) $< -o $@ 89 90 %.o: %.c 91 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 41 include $(USPACE_PREFIX)/Makefile.common
Note:
See TracChangeset
for help on using the changeset viewer.