2 SOFTINT_PREFIX
= ..
/softint
3 include $(LIBC_PREFIX
)/Makefile.toolchain
5 LIBS
= $(LIBC_PREFIX
)/libc.a
8 SOURCES
= shapes.c scores.c input.c tetris.c screen.c
9 OBJECTS
:= $(addsuffix .o
,$(basename $(SOURCES
)))
11 .PHONY
: all clean depend disasm
15 -include Makefile.depend
18 $(CC
) $(DEFS
) $(CFLAGS
) -M
$(SOURCES
) > Makefile.depend
20 $(OUTPUT
): $(OBJECTS
) $(LIBS
)
21 $(LD
) -T
$(LIBC_PREFIX
)/arch
/$(ARCH
)/_link.
ld $(OBJECTS
) $(LIBS
) $(LFLAGS
) -o
$@
-Map
$(OUTPUT
).map
24 -rm -f
$(OUTPUT
) $(OUTPUT
).map
$(OUTPUT
).disasm Makefile.depend
*.o
26 $(OBJDUMP
) -d
$(OUTPUT
) >$(OUTPUT
).disasm
29 $(CC
) $(DEFS
) $(AFLAGS
) $(CFLAGS
) -D__ASM__
-c
$< -o
$@
32 $(AS
) $(AFLAGS
) $< -o
$@
35 $(CC
) $(DEFS
) $(CFLAGS
) -c
$< -o
$@