source: mainline/tetris/Makefile@ c594489

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since c594489 was c0e674a, checked in by Ondrej Palkovsky <ondrap@…>, 19 years ago

Fix incorrect timeout handling in async framework.
Start tweak the tetris code.

  • Property mode set to 100644
File size: 794 bytes
Line 
1LIBC_PREFIX = ../libc
2SOFTINT_PREFIX = ../softint
3include $(LIBC_PREFIX)/Makefile.toolchain
4
5LIBS = $(LIBC_PREFIX)/libc.a
6
7OUTPUT = tetris
8SOURCES = shapes.c scores.c input.c tetris.c screen.c
9OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
10
11.PHONY: all clean depend disasm
12
13all: $(OUTPUT)
14
15-include Makefile.depend
16
17depend:
18 $(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
19
20$(OUTPUT): $(OBJECTS) $(LIBS)
21 $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
22
23clean:
24 -rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend *.o
25disasm:
26 $(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm
27
28%.o: %.S
29 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
30
31%.o: %.s
32 $(AS) $(AFLAGS) $< -o $@
33
34%.o: %.c
35 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
Note: See TracBrowser for help on using the repository browser.