1# 2# GRX test programs makefile for Mingw. 3# Uses GNU make. 4# 5.SUFFIXES: .exe 6.PHONY: clean 7 8GRXVW32=y 9 10include ../../makedefs.grx 11 12# The following line is useful only in this makefile to force recompilation 13GRXLIB = ../../lib/$(GRX_LIB_SUBDIR)/libgrx20.a 14# In normal use the library libgrx20.a is linked in through 15# {$L grx20} contained in the unit graph.pas called by "uses graph". 16# The same is valid for other ADDON libraries. 17# If the library is NOT installed give its path 18# (default when first compiling/testing the library) 19GRXLIBPATH = -L../../lib/$(GRX_LIB_SUBDIR) 20# When it is installed in a standard system location 21# (normal use) this is no more necessary 22 23LIBS= $(GRXLIBPATH) -mwindows -mconsole 24 25# Compiler and options on your system 26COMPILER = $(PC) --autobuild 27 28 29PROGS= \ 30 allmodes.exe \ 31 modelist.exe \ 32 colors.exe \ 33 demo.exe \ 34 small.exe \ 35 palette.exe 36 37all: $(PROGS) 38 39$(PROGS): %.exe : %.pas $(GRXLIB) graph.pas 40 $(COMPILER) $(CCOPT) -o $*.exe $*.pas $(LDOPT) $(LIBS) 41 42clean: 43ifeq ($(HAVE_UNIX_TOOLS),y) 44 rm -f *.o *.exe *.gpi *.gpm 45else 46 if exist *.o del *.o 47 if exist *.exe del *.exe 48 if exist *.gpi del *.gpi 49 if exist *.gpm del *.gpm 50endif 51