Changes in uspace/srv/ns/Makefile [40313e4:1b1164e8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ns/Makefile
r40313e4 r1b1164e8 1 1 # 2 2 # Copyright (c) 2005 Martin Decky 3 # Copyright (c) 2007 Jakub Jermar 3 4 # All rights reserved. 4 5 # … … 27 28 # 28 29 29 ## Setup toolchain 30 # 30 USPACE_PREFIX = ../.. 31 BINARY = ns 31 32 32 LIBC_PREFIX = ../../lib/libc33 SOFTINT_PREFIX = ../../lib/softint34 35 include $(LIBC_PREFIX)/Makefile.toolchain36 37 LIBS = $(LIBC_PREFIX)/libc.a38 39 ## Sources40 #41 42 OUTPUT = ns43 33 SOURCES = \ 44 34 ns.c \ … … 47 37 task.c 48 38 49 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) 50 51 .PHONY: all clean depend disasm 52 53 all: $(OUTPUT) $(OUTPUT).disasm 54 55 -include Makefile.depend 56 57 clean: 58 -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS) 59 60 depend: 61 $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend 62 63 $(OUTPUT): $(OBJECTS) $(LIBS) 64 $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 65 66 disasm: $(OUTPUT).disasm 67 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 $@ 39 include $(USPACE_PREFIX)/Makefile.common
Note:
See TracChangeset
for help on using the changeset viewer.