source: mainline/uspace/app/tetris/Makefile@ 515a0102

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 515a0102 was 515a0102, checked in by Jiri Svoboda <jirik.svoboda@…>, 17 years ago

Do not disassemble needlessly.

  • Property mode set to 100644
File size: 851 bytes
Line 
1LIBC_PREFIX = ../../lib/libc
2SOFTINT_PREFIX = ../../lib/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) $(OUTPUT).disasm
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
25
26disasm: $(OUTPUT).disasm
27
28$(OUTPUT).disasm: $(OUTPUT)
29 $(OBJDUMP) -d $< >$@
30
31%.o: %.S
32 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
33
34%.o: %.s
35 $(AS) $(AFLAGS) $< -o $@
36
37%.o: %.c
38 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
Note: See TracBrowser for help on using the repository browser.