
CC = cc
LDFLAGS = -s
#LDFLAGS = -g
CDEBUGFLAGS = -O -s
#CDEBUGFLAGS = -g
#DEFINES = -DNOUSLEEP
XLIB = -lX11
LIBPATH = -L/usr/lib/X11
INCLUDEPATH = -I/usr/local/X11R5/include

SRCS            = xtmines.c init.c play.c event.c hiscore.c
OBJS            = xtmines.o init.o play.o event.o hiscore.o

tmines: $(OBJS)
	$(CC) $(LDFLAGS) -o xtmines $(OBJS) $(LIBPATH) $(XLIB)

.c.o:
	$(CC) $(CDEBUGFLAGS) $(INCLUDEPATH) $(DEFINES) -c $< 

tar:
	tar cvf xtmines.tar README *ake* *.c *.h *.bm *.man
	compress xtmines.tar
