home *** CD-ROM | disk | FTP | other *** search
/ Qu-ake / Qu-ake.iso / qu_ke / utils / bsptools / 013 / MAKEFILE < prev    next >
Encoding:
Text File  |  1996-03-07  |  1.7 KB  |  71 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 -O -f287
  15. LINK=c:/tasm/bin/tlink.exe @linkinfo.txt
  16. EXE=.exe
  17. OBJ=.obj
  18. RM=del
  19. PRIVATE=
  20. #----------------End of MS-DOS definitions--------------------
  21.  
  22. #--------------These definitions are for UNIX-----------------
  23. #VERSION=QUBE_UNIX
  24. #CC=gcc -O -c
  25. #LINK=gcc -o qube qube.o image.o entities.o gfx.o tree.o pak.o xgfx.o vertex.o edge.o -lX11 -lm
  26. #EXE=
  27. #OBJ=.o
  28. #RM=rm
  29. #PRIVATE=xgfx.o
  30. #-----------------End of UNIX definitions---------------------
  31.  
  32.  
  33. qube$(EXE):    qube$(OBJ) image$(OBJ) entities$(OBJ) gfx$(OBJ) tree$(OBJ) pak$(OBJ) vertex$(OBJ) edge$(OBJ) $(PRIVATE)
  34.         $(LINK)
  35.  
  36. qube$(OBJ):    qube.c qube.h image.h entities.h gfx.h tree.h pak.h vertex.h edge.h
  37.         $(CC) -D$(VERSION) qube.c
  38.  
  39. image$(OBJ):    image.c qube.h image.h
  40.         $(CC) -D$(VERSION) image.c
  41.  
  42. entities$(OBJ): entities.c qube.h entities.h
  43.         $(CC) -D$(VERSION) entities.c
  44.  
  45. tree$(OBJ):    tree.c qube.h tree.h
  46.         $(CC) -D$(VERSION) tree.c
  47.  
  48. gfx$(OBJ):    gfx.c qube.h gfx.h entities.h
  49.         $(CC) -D$(VERSION) gfx.c
  50.  
  51. pak$(OBJ):    pak.c qube.h pak.h
  52.         $(CC) -D$(VERSION) pak.c
  53.  
  54. vertex$(OBJ):    vertex.c vertex.h qube.h
  55.         $(CC) -D$(VERSION) vertex.c
  56.  
  57. edge$(OBJ):    edge.c edge.h qube.h
  58.         $(CC) -D$(VERSION) edge.c
  59.  
  60. xgfx.o:        xgfx.c xgfx.h
  61.         $(CC) -D$(VERSION) xgfx.c
  62.  
  63. #
  64. # Clean: Clean up that leftover junk lying around.
  65. #
  66.  
  67. clean:
  68.         $(RM) qube$(EXE)
  69.         $(RM) *$(OBJ)
  70.  
  71.