Changeset 5f70118 in mainline for uspace/srv/hw/cir/obio/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/hw/cir/obio/Makefile.build
r309ede1 r5f70118 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 33 include Makefile.common 36 34 include $(LIBC_PREFIX)/Makefile.toolchain 37 38 LIBS = $(LIBC_PREFIX)/libc.a39 35 40 36 ## Sources 41 37 # 42 38 43 OUTPUT = obio44 39 SOURCES = \ 45 40 obio.c … … 47 42 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 48 43 49 .PHONY: all clean depend disasm44 .PHONY: all 50 45 51 46 all: $(OUTPUT) $(OUTPUT).disasm 52 47 53 -include Makefile.depend48 -include $(DEPEND) 54 49 55 clean: 56 -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS) 57 58 depend: 59 $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend 50 $(OUTPUT).disasm: $(OUTPUT) 51 $(OBJDUMP) -d $< > $@ 60 52 61 53 $(OUTPUT): $(OBJECTS) $(LIBS) 62 54 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 63 55 64 disasm: $(OUTPUT).disasm 56 %.o: %.c $(DEPEND) 57 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ 58 ifeq ($(PRECHECK),y) 59 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 60 endif 65 61 66 $(OUTPUT).disasm: $(OUTPUT) 67 $(OBJDUMP) -d $< > $@ 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 $@ 62 $(DEPEND): 63 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) > $@ 2> /dev/null 64 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@
Note:
See TracChangeset
for help on using the changeset viewer.