Rev 3597 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3597 | Rev 4377 | ||
---|---|---|---|
Line 1... | Line -... | ||
1 | include ../../Makefile.config |
- | |
2 | - | ||
3 | LIBC_PREFIX = ../../lib/libc |
1 | LIBC_PREFIX = ../../lib/libc |
4 | SOFTINT_PREFIX = ../../lib/softint |
2 | SOFTINT_PREFIX = ../../lib/softint |
- | 3 | ||
5 | include $(LIBC_PREFIX)/Makefile.toolchain |
4 | include $(LIBC_PREFIX)/Makefile.toolchain |
6 | 5 | ||
7 | LIBS = $(LIBC_PREFIX)/libc.a |
6 | LIBS = $(LIBC_PREFIX)/libc.a |
8 | 7 | ||
9 | OUTPUT = tetris |
8 | OUTPUT = tetris |
Line 18... | Line 17... | ||
18 | 17 | ||
19 | depend: |
18 | depend: |
20 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
19 | $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend |
21 | 20 | ||
22 | $(OUTPUT): $(OBJECTS) $(LIBS) |
21 | $(OUTPUT): $(OBJECTS) $(LIBS) |
23 | $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
22 | $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map |
24 | 23 | ||
25 | clean: |
24 | clean: |
26 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend *.o |
25 | -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend *.o |
27 | 26 | ||
28 | disasm: $(OUTPUT).disasm |
27 | disasm: $(OUTPUT).disasm |