22 lines
512 B
Plaintext
22 lines
512 B
Plaintext
TOPSRC = $(shell cd ../../..; pwd)
|
|
include $(TOPSRC)/target.mk
|
|
|
|
CFLAGS += -Werror
|
|
|
|
all: chello stdarg
|
|
|
|
chello: chello.o
|
|
${CC} ${LDFLAGS} -o chello.elf chello.o ${LIBS}
|
|
${OBJDUMP} -S chello.elf > chello.dis
|
|
${SIZE} chello.elf
|
|
${ELF2AOUT} chello.elf $@
|
|
|
|
tetris: tetris.o
|
|
${CC} ${LDFLAGS} -o tetris.elf tetris.o ${LIBS}
|
|
${OBJDUMP} -S tetris.elf > tetris.dis
|
|
${SIZE} tetris.elf
|
|
${ELF2AOUT} tetris.elf $@
|
|
|
|
clean:
|
|
rm -f *.o *.elf ${MAN} chello stdarg *.elf *.dis tags *~
|