home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume19 / xtmines / part02 / COMPILING < prev    next >
Encoding:
Text File  |  1993-04-28  |  1.2 KB  |  39 lines

  1.  
  2. The only thing you must set before compiling is the HISCORE_FILENAME in
  3. hiscore.c.  Substitute the full pathname of the high scores file.
  4.  
  5. xtmines comes with an Imakefile, which means that compilation is as easy as
  6. typing xmkmf followed by make.  However, since the compilation is
  7. straightforward, you could probably compile using the Makefile that is
  8. provided.
  9.  
  10. If you don't have usleep() on your system, then uncomment the following line in
  11. the Imakefile or Makefile:
  12.     DEFINES = -DNOUSLEEP
  13.  
  14. If you don't have imake on your system, then use the following Makefile:
  15. (You might have to adjust the LIBPATH for your system.)
  16.  
  17. -----------------------------------------------------------------
  18.  
  19. CC = cc
  20. LDFLAGS = -s
  21. CDEBUGFLAGS = -O -s
  22. #DEFINES = -DNOUSLEEP
  23. XLIB = -lX11
  24. LIBPATH = -L/usr/lib/X11
  25. INCLUDEPATH = -I/usr/local/X11R5/include
  26.  
  27. SRCS            = xtmines.c init.c play.c event.c hiscore.c
  28. OBJS            = xtmines.o init.o play.o event.o hiscore.o
  29.  
  30. tmines: $(OBJS)
  31.     $(CC) $(LDFLAGS) -o xtmines $(OBJS) $(LIBPATH) $(XLIB)
  32.  
  33. .c.o:
  34.     $(CC) $(CDEBUGFLAGS) $(INCLUDEPATH) $(DEFINES) -c $< 
  35.  
  36. tar:
  37.     tar cvf xtmines.tar README COMPILING COPYING *ake* *.c *.h *.bm *.man
  38.     compress xtmines.tar
  39.