Rev 942 | Rev 994 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 942 | Rev 954 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | 28 | ||
29 | ## Setup toolchain |
29 | ## Setup toolchain |
30 | # |
30 | # |
31 | 31 | ||
32 | LIBC_PREFIX = ../libc |
32 | LIBC_PREFIX = ../libc |
- | 33 | LIBIPC_PREFIX = ../libipc |
|
33 | include $(LIBC_PREFIX)/Makefile.toolchain |
34 | include $(LIBC_PREFIX)/Makefile.toolchain |
34 | 35 | ||
- | 36 | CFLAGS += -I../libipc/include |
|
- | 37 | ||
35 | ## Sources |
38 | ## Sources |
36 | # |
39 | # |
37 | 40 | ||
38 | OUTPUT = init |
41 | OUTPUT = init |
39 | SOURCES = \ |
42 | SOURCES = \ |
Line 53... | Line 56... | ||
53 | 56 | ||
54 | depend: |
57 | depend: |
55 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
58 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
56 | 59 | ||
57 | $(OUTPUT): $(OBJECTS) |
60 | $(OUTPUT): $(OBJECTS) |
58 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(LFLAGS) $(OBJECTS) $(LIBC_PREFIX)/libc.a -o $@ -Map $(OUTPUT).map |
61 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(LFLAGS) $(OBJECTS) $(LIBC_PREFIX)/libc.a $(LIBIPC_PREFIX)/libipc.a -o $@ -Map $(OUTPUT).map |
59 | 62 | ||
60 | disasm: |
63 | disasm: |
61 | $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm |
64 | $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm |
62 | 65 | ||
63 | %.o: %.S |
66 | %.o: %.S |