# # GRX test programs makefile for LINUX/console. # Uses GNU make. # .SUFFIXES: .exe .PHONY: clean GRXVLNX=y include ../makedefs.grx # The following line is useful only in this makefile to force recompilation GRXLIB = ../lib/$(GRX_LIB_SUBDIR)/libgrx20.a # In normal use the library libgrx20.a or libgrx20.so is linked in through # {$L grx20} contained in the unit grx.pas called by "uses grx". # The same is valid for other ADDON libraries. # If the library is NOT installed give its path # (default when first compiling/testing the library) GRXLIBPATH = -L../lib/$(GRX_LIB_SUBDIR) # When it is installed in a standard system location # (normal use) this is no more necessary ifeq ($(SET_SUIDROOT),y) EXECBITS = 4755 else EXECBITS = 0755 endif LIBS= $(GRXLIBPATH) # Compiler and options on your system COMPILER = $(PC) --automake PROGS= \ blt_test \ modetest \ keytest \ txt_test \ vir_test \ polytest \ jpgtest \ colortst \ imgview all: $(PROGS) $(PROGS): % : %.pas $(GRXLIB) grx.pas $(COMPILER) $(CCOPT) -o $* $*.pas $(LIBS) chmod $(EXECBITS) $@ clean: rm -f *.o *.gpi *.gpm $(PROGS)