#	$Id: Makefile,v 1.15 2017/06/08 08:28:07 hacki Exp $

CCFLAGS =		-O2 -pipe -Wall -Wstrict-prototypes -c
#DFLAGS =		-DHISCORE_USER_MAX=1024

all:			spaceinvaders.o score.o
			cc -o spaceinvaders spaceinvaders.o score.o -lcurses

spaceinvaders.o:	spaceinvaders.c
			cc ${CCFLAGS} ${DFLAGS} spaceinvaders.c

score.o:		score.c
			cc ${CCFLAGS} ${DFLAGS} score.c

install:
			install -c -s -o root -g bin -m 555 spaceinvaders \
			    /usr/games/spaceinvaders
			install -c -o root -g bin -m 444 spaceinvaders.6 \
			    /usr/share/man/man6/spaceinvaders.6

clean:
			rm -rf spaceinvaders *.o
