Changeset 5f70118 in mainline for uspace/srv/hid/console/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/console/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 CFLAGS += -I.38 39 LIBS = $(LIBC_PREFIX)/libc.a40 35 41 36 ## Sources 42 37 # 43 38 44 OUTPUT = console 45 46 GENERIC_SOURCES = \ 39 SOURCES = \ 47 40 console.c \ 48 41 screenbuffer.c \ … … 62 55 gfx/anim_4.ppm 63 56 64 GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) \ 65 $(addsuffix .o,$(basename $(IMAGES))) 57 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) $(addsuffix .o,$(basename $(IMAGES))) 66 58 67 OBJECTS := $(GENERIC_OBJECTS) 68 69 .PHONY: all clean depend disasm 59 .PHONY: all 70 60 71 61 all: $(OUTPUT) $(OUTPUT).disasm 72 62 73 -include Makefile.depend63 -include $(DEPEND) 74 64 75 clean: 76 -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS) 77 78 depend: 79 $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend 65 $(OUTPUT).disasm: $(OUTPUT) 66 $(OBJDUMP) -d $< > $@ 80 67 81 68 $(OUTPUT): $(OBJECTS) $(LIBS) 82 69 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 83 70 84 disasm: $(OUTPUT).disasm 85 86 $(OUTPUT).disasm: $(OUTPUT) 87 $(OBJDUMP) -d $< > $@ 88 89 %.o: %.S 90 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@ 91 92 %.o: %.s 93 $(AS) $(AFLAGS) $< -o $@ 94 95 %.o: %.c 71 %.o: %.c $(DEPEND) 96 72 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 73 ifeq ($(PRECHECK),y) 74 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 75 endif 97 76 98 77 %.o: %.ppm 99 78 $(OBJCOPY) -I binary -O $(BFD_NAME) -B $(BFD_ARCH) $< $@ 79 80 $(DEPEND): 81 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) > $@ 2> /dev/null 82 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@
Note:
See TracChangeset
for help on using the changeset viewer.