home *** CD-ROM | disk | FTP | other *** search
-
- The only thing you must set before compiling is the HISCORE_FILENAME in
- hiscore.c. Substitute the full pathname of the high scores file.
-
- xtmines comes with an Imakefile, which means that compilation is as easy as
- typing xmkmf followed by make. However, since the compilation is
- straightforward, you could probably compile using the Makefile that is
- provided.
-
- If you don't have usleep() on your system, then uncomment the following line in
- the Imakefile or Makefile:
- DEFINES = -DNOUSLEEP
-
- If you don't have imake on your system, then use the following Makefile:
- (You might have to adjust the LIBPATH for your system.)
-
- -----------------------------------------------------------------
-
- CC = cc
- LDFLAGS = -s
- CDEBUGFLAGS = -O -s
- #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 COMPILING COPYING *ake* *.c *.h *.bm *.man
- compress xtmines.tar
-