1#
2# GRX test programs makefile for SDL.
3# Uses GNU make.
4#
5.SUFFIXES: .exe
6.PHONY: clean
7
8GRXVSDL=y
9
10include  ../../makedefs.grx
11
12# The following line is useful only in this makefile to force recompilation
13GRXLIB = ../../lib/$(GRX_LIB_SUBDIR)/libgrx20S.a
14# In normal use  the library libgrx20S.a is linked in through
15# {$L grx20S} 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
23ifneq ($(EP),x)
24  EX = .exe
25endif
26
27LIBS = $(GRXLIBPATH)
28
29# Compiler and options on your system
30COMPILER = $(PC) --autobuild
31
32
33PROGS= 				\
34	$(EP)allmodes$(EX)	\
35	$(EP)modelist$(EX)	\
36	$(EP)colors$(EX)	\
37	$(EP)demo$(EX)		\
38	$(EP)small$(EX)		\
39	$(EP)palette$(EX)
40
41all: $(PROGS)
42
43$(PROGS): $(EP)%$(EX) : %.pas $(GRXLIB) graph.pas
44	$(COMPILER) $(CCOPT) -o $@ $*.pas $(LDOPT) $(LIBS)
45
46clean:
47	rm -f *.o *.gpi *.gpm $(PROGS)
48