1# 2# GRX test programs makefile for LINUX/X11. 3# Uses GNU make. 4# 5.SUFFIXES: .exe 6.PHONY: clean 7 8GRXVX11=y 9 10include ../../makedefs.grx 11 12# The following line is useful only in this makefile to force recompilation 13GRXLIB = ../../lib/$(GRX_LIB_SUBDIR)/libgrx20X.a 14# In normal use the library libgrx20X.a or libgrx20X.so is linked in through 15# {$L grx20X} 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 23ifeq ($(SET_XSUIDROOT),y) 24EXECBITS = 4755 25else 26EXECBITS = 0755 27endif 28 29ADDON_LIBS= 30 31ifeq ($(USE_XF86DGA_DRIVER),y) 32 ADDON_LIBS += -lXxf86dga -lXext #NOT included in graph.pas 33endif 34 35LIBS= $(GRXLIBPATH) $(ADDON_LIBS) 36 37# Compiler and options on your system 38COMPILER = $(PC) --automake 39 40PROGS= \ 41 xallmodes \ 42 xmodelist \ 43 xcolors \ 44 xdemo \ 45 xsmall \ 46 xpalette 47 48all: $(PROGS) 49 50$(PROGS): x% : %.pas $(GRXLIB) graph.pas 51 $(COMPILER) $(CCOPT) -o $@ $*.pas $(LIBS) 52 chmod $(EXECBITS) $@ 53 54clean: 55 rm -f *.o *.gpi *.gpm $(PROGS) 56 57 58