source: mainline/uspace/app/tetris/Makefile@ 901e827

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 901e827 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
RevLine 
[00acd66]1LIBC_PREFIX = ../../lib/libc
2SOFTINT_PREFIX = ../../lib/softint
[f25b73d6]3include $(LIBC_PREFIX)/Makefile.toolchain
4
5LIBS = $(LIBC_PREFIX)/libc.a
6
7OUTPUT = tetris
[c0e674a]8SOURCES = shapes.c scores.c input.c tetris.c screen.c
[f25b73d6]9OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
10
11.PHONY: all clean depend disasm
12
[515a0102]13all: $(OUTPUT) $(OUTPUT).disasm
[f25b73d6]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
[515a0102]25
26disasm: $(OUTPUT).disasm
27
28$(OUTPUT).disasm: $(OUTPUT)
29 $(OBJDUMP) -d $< >$@
[f25b73d6]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.