Rev 3989 | Rev 4243 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3989 | Rev 4155 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | 31 | ||
32 | LIBC_PREFIX = $(NET_BASE)../../lib/libc |
32 | LIBC_PREFIX = $(NET_BASE)../../lib/libc |
33 | SOFTINT_PREFIX = $(NET_BASE)../../lib/softint |
33 | SOFTINT_PREFIX = $(NET_BASE)../../lib/softint |
34 | include $(LIBC_PREFIX)/Makefile.toolchain |
34 | include $(LIBC_PREFIX)/Makefile.toolchain |
35 | 35 | ||
- | 36 | CFLAGS += -Iinclude -I../libadt/include |
|
- | 37 | ||
36 | LIBS = $(LIBC_PREFIX)/libc.a |
38 | LIBS = $(LIBC_PREFIX)/libc.a |
37 | 39 | ||
38 | DEFS += $(NET_DEFS) -D $(NAME)_message=module_message -D $(NAME)_start_module=module_start -D $(NAME)_print_name=module_print_name |
40 | DEFS += $(NET_DEFS) -D $(NAME)_message=module_message -D $(NAME)_start_module=module_start -D $(NAME)_print_name=module_print_name |
39 | 41 | ||
40 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
42 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
Line 48... | Line 50... | ||
48 | 50 | ||
49 | clean: |
51 | clean: |
50 | -rm -f $(OUTPUT) $(addsuffix .map,$(basename $(SOURCES))) $(DISASMS) Makefile.depend |
52 | -rm -f $(OUTPUT) $(addsuffix .map,$(basename $(SOURCES))) $(DISASMS) Makefile.depend |
51 | 53 | ||
52 | depend: |
54 | depend: |
53 | $(CC) $(DEFS) $(CFLAGS) -M $(addsuffix .c,$(basename $(OUTPUT))) $(SOURCES) > Makefile.depend |
55 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
54 | 56 | ||
55 | $(OUTPUT): $(OBJECTS) $(LIBS) |
57 | $(OUTPUT): $(OBJECTS) $(LIBS) |
56 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $@.map |
58 | $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $@.map |
57 | 59 | ||
58 | disasm: $(DISASMS) |
60 | disasm: $(DISASMS) |
59 | 61 | ||
60 | %.disasm: $@ |
62 | %.disasm: $@ |
61 | $(OBJDUMP) -d $< >$@ |
63 | $(OBJDUMP) -d $< >$@ |