Changeset 5f70118 in mainline for uspace/srv/hid/fb/Makefile.build
- Timestamp:
- 2010-01-10T12:16:59Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c77a64f
- Parents:
- 309ede1 (diff), 1ac3a52 (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/hid/fb/Makefile.build
r309ede1 r5f70118 1 1 # 2 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 3 4 # All rights reserved. 4 5 # … … 30 31 # 31 32 32 LIBC_PREFIX = ../../lib/libc 33 SOFTINT_PREFIX = ../../lib/softint 34 33 include Makefile.common 35 34 include $(LIBC_PREFIX)/Makefile.toolchain 36 37 LIBS = $(LIBC_PREFIX)/libc.a38 35 39 36 ## Sources 40 37 # 41 38 42 OUTPUT = fb43 39 SOURCES = \ 44 40 main.c \ … … 83 79 CFLAGS += -D$(UARCH) 84 80 85 86 81 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 87 82 88 .PHONY: all clean depend disasm83 .PHONY: all 89 84 90 85 all: $(OUTPUT) $(OUTPUT).disasm 91 86 92 -include Makefile.depend87 -include $(DEPEND) 93 88 94 clean: 95 -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS) 96 97 depend: 98 $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend 89 $(OUTPUT).disasm: $(OUTPUT) 90 $(OBJDUMP) -d $< > $@ 99 91 100 92 $(OUTPUT): $(OBJECTS) $(LIBS) 101 93 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 102 94 103 disasm: $(OUTPUT).disasm 95 %.o: %.c $(DEPEND) 96 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 97 ifeq ($(PRECHECK),y) 98 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 99 endif 104 100 105 $(OUTPUT).disasm: $(OUTPUT) 106 $(OBJDUMP) -d $< > $@ 107 108 %.o: %.S 109 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ 110 111 %.o: %.s 112 $(AS) $(AFLAGS) $< -o $@ 113 114 %.o: %.c 115 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 101 $(DEPEND): 102 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) > $@ 2> /dev/null 103 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@
Note:
See TracChangeset
for help on using the changeset viewer.