home *** CD-ROM | disk | FTP | other *** search
/ Quake++ for Quake / Quake++.iso / quake / qube / makefile < prev    next >
Encoding:
Makefile  |  1996-02-28  |  1.7 KB  |  76 lines

  1.  
  2. #
  3. # To just compile everything normally, comment in the appropriate
  4. # version for your system, and just type
  5. #     make
  6. #
  7. # Bear in mind that you'll need a little-endian system to make
  8. # this stuff work.  If you need to know what kind you have, try
  9. # compiling endian.c and running it.
  10. #
  11.  
  12. #-------------These definitions are for MS-DOS----------------
  13. VERSION=QUBE_MSDOS
  14. CC=c:/tc/bin/tcc.exe -1 -ml -c -Z -O
  15. LINK=c:/tasm/bin/tlink.exe
  16. LINKINFO=@linkinfo.txt
  17. EXE=.exe
  18. OBJ=.obj
  19. RM=del
  20. PRIVATE=
  21. GRAPHICS="dosgfx.h"
  22. #----------------End of MS-DOS definitions--------------------
  23.  
  24. #--------------These definitions are for UNIX-----------------
  25. #VERSION=QUBE_UNIX
  26. #CC=gcc -O -c
  27. #LINK=gcc
  28. #LINKINFO=-o qube qube.o image.o thing.o gfx.o tree.o pak.o xgfx.o -lX11
  29. #EXE=
  30. #OBJ=.o
  31. #RM=rm
  32. #PRIVATE=xgfx.o
  33. #-----------------End of UNIX definitions---------------------
  34.  
  35.  
  36. qube$(EXE):    qube$(OBJ) image$(OBJ) thing$(OBJ) gfx$(OBJ) tree$(OBJ) pak$(OBJ) $(PRIVATE)
  37.         $(LINK) $(LINKINFO)
  38.  
  39. qube$(OBJ):    qube.c qube.h image.h thing.h gfx.h tree.h pak.h
  40.         $(CC) -D$(VERSION) qube.c
  41.  
  42. image$(OBJ):    image.c qube.h image.h
  43.         $(CC) -D$(VERSION) image.c
  44.  
  45. thing$(OBJ):    thing.c qube.h thing.h
  46.         $(CC) -D$(VERSION) thing.c
  47.  
  48. tree$(OBJ):    tree.c qube.h tree.h
  49.         $(CC) -D$(VERSION) tree.c
  50.  
  51. gfx$(OBJ):    gfx.c qube.h gfx.h thing.h
  52.         $(CC) -D$(VERSION) gfx.c
  53.  
  54. pak$(OBJ):    pak.c qube.h pak.h
  55.         $(CC) -D$(VERSION) pak.c
  56.  
  57.  
  58. xgfx.o:        xgfx.c xgfx.h
  59.         $(CC) -D$(VERSION) xgfx.c
  60.  
  61. #
  62. # Clean: Clean up that leftover junk lying around.
  63. #
  64.  
  65. clean:
  66.         $(RM) qube.exe
  67.         $(RM) qube.obj
  68.         $(RM) image.obj
  69.         $(RM) thing.obj
  70.         $(RM) gfx.obj
  71.         $(RM) tree.obj
  72.         $(RM) pak.obj
  73.         $(RM) qube
  74.         $(RM) *.o
  75.  
  76.