Rev 2247 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2247 | Rev 2253 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | SOFTINT_PREFIX = ../softint |
2 | SOFTINT_PREFIX = ../softint |
3 | include $(LIBC_PREFIX)/Makefile.toolchain |
3 | include $(LIBC_PREFIX)/Makefile.toolchain |
4 | 4 | ||
5 | LIBS = $(LIBC_PREFIX)/libc.a |
5 | LIBS = $(LIBC_PREFIX)/libc.a |
6 | 6 | ||
7 | OUTPUT = cat |
7 | OUTPUT = tetris |
8 | SOURCES = cat.c |
8 | SOURCES = shapes.c scores.c input.c tetris.c screen.c |
9 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
9 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
10 | 10 | ||
11 | .PHONY: all clean depend disasm |
11 | .PHONY: all clean depend disasm |
12 | 12 | ||
13 | all: $(OUTPUT) disasm |
13 | all: $(OUTPUT) disasm |
Line 31... | Line 31... | ||
31 | %.o: %.s |
31 | %.o: %.s |
32 | $(AS) $(AFLAGS) $< -o $@ |
32 | $(AS) $(AFLAGS) $< -o $@ |
33 | 33 | ||
34 | %.o: %.c |
34 | %.o: %.c |
35 | $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ |
35 | $(CC) $(DEFS) $(CFLAGS) -c $< -o $@ |
- | 36 |