home *** CD-ROM | disk | FTP | other *** search
- #
- # uncomment and change this if not defined in the environment
- # TCCLIB= c:\bin\tcc\lib
- #
-
- !if !$d(MODEL)
- MODEL= l
- !endif
-
- !if $d(DEBUG)
- GCCDBG= -g
- TCCDBG= -v
- !endif
-
- GCCEXE= test. wintest. winclip. cliptest. rgbtest. framtest. \
- colorops. blittest. fonttest. curstest. mousetst. \
- circtest. polytest. arctest. testpatt.
-
- TCCEXE= test.exe wintest.exe winclip.exe colorops.exe fonttest.exe \
- cliptest.exe rgbtest.exe framtest.exe blittest.exe paltest.exe \
- curstest.exe mousetst.exe circtest.exe polytest.exe \
- arctest.exe testpatt.exe
-
- all: $(GCCEXE)
-
- turboc: $(TCCEXE)
-
- .c.:
- gcc $(GCCDBG) -O -I../include -L../lib -o $* $*.c -lgrx -lm
-
- .c.exe:
- tcc -m$(MODEL) $(TCCDBG) -w -O -G -Z -I../include $*.c $(TCCLIB)\wildargs.obj ..\lib\grx$(MODEL).lib
- -del $*.obj
-
- redo:
- cd ..\src
- !if $d(DEBUG)
- make -DDEBUG
- !else
- make
- !endif
- cd ..\test
-
- redotc:
- cd ..\src
- !if $d(DEBUG)
- make -DDEBUG turboc
- !else
- make turboc
- !endif
- cd ..\test
-
- $(GCCEXE): test.h ../include/grx.h ../include/mousex.h ../lib/libgrx.a
-
- $(TCCEXE): test.h ../include/grx.h ../include/mousex.h ../lib/grx$(MODEL).lib
-