home *** CD-ROM | disk | FTP | other *** search
/ Monster Disc 2: The Best of 1992 / MONSTER2.ISO / prog / djgpp / cbgrx102.a01 / CONTRIB / LIBGRX / TEST / MAKEFILE < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.1 KB  |  57 lines

  1. #
  2. # uncomment and change this if not defined in the environment
  3. # TCCLIB= c:\bin\tcc\lib
  4. #
  5.  
  6. !if !$d(MODEL)
  7. MODEL=  l
  8. !endif
  9.  
  10. !if $d(DEBUG)
  11. GCCDBG= -g
  12. TCCDBG= -v
  13. !endif
  14.  
  15. GCCEXE= test. wintest. winclip. cliptest. rgbtest. framtest. \
  16.     colorops. blittest. fonttest. curstest. mousetst. \
  17.     circtest. polytest. arctest. testpatt.
  18.  
  19. TCCEXE= test.exe wintest.exe winclip.exe colorops.exe fonttest.exe \
  20.     cliptest.exe rgbtest.exe framtest.exe blittest.exe paltest.exe \
  21.     curstest.exe mousetst.exe circtest.exe polytest.exe \
  22.     arctest.exe testpatt.exe
  23.  
  24. all:    $(GCCEXE)
  25.  
  26. turboc: $(TCCEXE)
  27.  
  28. .c.:
  29.     gcc $(GCCDBG) -O -I../include -L../lib -o $* $*.c -lgrx -lm
  30.  
  31. .c.exe:
  32.     tcc -m$(MODEL) $(TCCDBG) -w -O -G -Z -I../include $*.c $(TCCLIB)\wildargs.obj ..\lib\grx$(MODEL).lib
  33.     -del $*.obj
  34.  
  35. redo:
  36.     cd ..\src
  37. !if $d(DEBUG)
  38.     make -DDEBUG
  39. !else
  40.     make
  41. !endif
  42.     cd ..\test
  43.  
  44. redotc:
  45.     cd ..\src
  46. !if $d(DEBUG)
  47.     make -DDEBUG turboc
  48. !else
  49.     make turboc
  50. !endif
  51.     cd ..\test
  52.  
  53. $(GCCEXE): test.h ../include/grx.h ../include/mousex.h ../lib/libgrx.a
  54.  
  55. $(TCCEXE): test.h ../include/grx.h ../include/mousex.h ../lib/grx$(MODEL).lib
  56.  
  57.