Changeset 985e26d2 in mainline for uspace/srv/bd/part/mbr_part/Makefile.build
- Timestamp:
- 2010-01-07T19:06:59Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8190e63
- Parents:
- 743e17b (diff), eca2435 (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 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/part/mbr_part/Makefile.build
r743e17b r985e26d2 1 1 # 2 # Copyright (c) 2006 Martin Decky 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 3 4 # All rights reserved. 4 5 # … … 30 31 # 31 32 32 33 LIBC_PREFIX = ../../../lib/libc 34 SOFTINT_PREFIX = ../../../lib/softint 35 LIBBLOCK_PREFIX = ../../../lib/libblock 36 33 include Makefile.common 37 34 include $(LIBC_PREFIX)/Makefile.toolchain 38 35 39 36 CFLAGS += -I$(LIBBLOCK_PREFIX) 40 LIBS = $(LIBBLOCK_PREFIX)/libblock.a $(LIBC_PREFIX)/libc.a41 37 42 38 ## Sources 43 39 # 44 40 45 OUTPUT = mbr_part46 41 SOURCES = \ 47 42 mbr_part.c … … 49 44 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 50 45 51 .PHONY: all clean depend disasm46 .PHONY: all 52 47 53 48 all: $(OUTPUT) $(OUTPUT).disasm 54 49 55 -include Makefile.depend50 -include $(DEPEND) 56 51 57 clean: 58 -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS) 59 60 depend: 61 $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend 52 $(OUTPUT).disasm: $(OUTPUT) 53 $(OBJDUMP) -d $< > $@ 62 54 63 55 $(OUTPUT): $(OBJECTS) $(LIBS) 64 56 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 65 57 66 disasm: $(OUTPUT).disasm 58 %.o: %.c $(DEPEND) 59 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 60 ifeq ($(PRECHECK),y) 61 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 62 endif 67 63 68 $(OUTPUT).disasm: $(OUTPUT) 69 $(OBJDUMP) -d $< > $@ 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 $@ 64 $(DEPEND): 65 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) > $@ 2> /dev/null 66 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@
Note:
See TracChangeset
for help on using the changeset viewer.