Rev 1181 | Rev 1335 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1181 | Rev 1301 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | SOFTINT_PREFIX = ../softint |
34 | SOFTINT_PREFIX = ../softint |
35 | include $(LIBC_PREFIX)/Makefile.toolchain |
35 | include $(LIBC_PREFIX)/Makefile.toolchain |
36 | 36 | ||
37 | CFLAGS += -I../libipc/include |
37 | CFLAGS += -I../libipc/include |
38 | 38 | ||
39 | LIBS = $(LIBIPC_PREFIX)/libipc.a $(LIBC_PREFIX)/libc.a |
39 | LIBS = libpci/libpci.a $(LIBC_PREFIX)/libc.a |
40 | 40 | ||
41 | ## Sources |
41 | ## Sources |
42 | # |
42 | # |
43 | 43 | ||
44 | OUTPUT = pci |
44 | OUTPUT = pci |
Line 53... | Line 53... | ||
53 | 53 | ||
54 | -include Makefile.depend |
54 | -include Makefile.depend |
55 | 55 | ||
56 | clean: |
56 | clean: |
57 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend |
57 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend |
- | 58 | $(MAKE) -C libpci clean |
|
58 | 59 | ||
59 | depend: |
60 | depend: |
60 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
61 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
61 | 62 | ||
62 | $(OUTPUT): $(OBJECTS) $(LIBS) |
63 | $(OUTPUT): $(OBJECTS) $(LIBS) |
- | 64 | $(MAKE) -C libpci |
|
63 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
65 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
64 | 66 | ||
65 | disasm: |
67 | disasm: |
66 | $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm |
68 | $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm |
67 | 69 | ||
Line 71... | Line 73... | ||
71 | %.o: %.s |
73 | %.o: %.s |
72 | $(AS) $(AFLAGS) $< -o $@ |
74 | $(AS) $(AFLAGS) $< -o $@ |
73 | 75 | ||
74 | %.o: %.c |
76 | %.o: %.c |
75 | $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ |
77 | $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ |
- | 78 | ||
- | 79 | libpci/libpci.a: |
|
- | 80 | $(MAKE) -C libpci |