2002-04-14 02:36:20 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2006-12-21 17:48:32 +01:00
|
|
|
CFLAGS+=-fno-builtin -nostdinc -I. -Wall
|
2002-04-14 02:36:20 +02:00
|
|
|
LDFLAGS+=-nostdlib -Wl,-N -Wl,-Ttext -Wl,100000
|
|
|
|
|
|
|
|
PROG= invaders
|
|
|
|
OBJS= boot.o common.o kernel.o keyboard.o video.o game.o sound.o \
|
|
|
|
delay.o memory.o
|
|
|
|
|
|
|
|
all: ${PROG}
|
|
|
|
|
|
|
|
${PROG}: ${PROG}.exec
|
|
|
|
objcopy -O binary invaders.exec invaders
|
|
|
|
|
|
|
|
${PROG}.exec: ${OBJS}
|
|
|
|
${CC} ${LDFLAGS} -o ${PROG}.exec ${OBJS}
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ${OBJS} ${PROG}
|
|
|
|
|