53 lines
1.2 KiB
Text
53 lines
1.2 KiB
Text
#
|
|
# GRX test programs makefile for DJGPP v2.
|
|
# Uses GNU make.
|
|
#
|
|
.SUFFIXES: .exe
|
|
.PHONY: clean
|
|
|
|
GRXVDJ2=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 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
|
|
|
|
LIBS= $(GRXLIBPATH)
|
|
|
|
# Compiler and options on your system
|
|
COMPILER = $(PC) --automake
|
|
|
|
|
|
PROGS= \
|
|
blt_test.exe \
|
|
modetest.exe \
|
|
keytest.exe \
|
|
txt_test.exe \
|
|
vir_test.exe \
|
|
polytest.exe \
|
|
jpgtest.exe \
|
|
colortst.exe \
|
|
imgview.exe
|
|
|
|
all: $(PROGS)
|
|
|
|
$(PROGS): %.exe : %.pas $(GRXLIB) grx.pas
|
|
$(COMPILER) $(CCOPT) -o $*.exe $*.pas $(LDOPT) $(LIBS)
|
|
|
|
clean:
|
|
ifeq ($(HAVE_UNIX_TOOLS),y)
|
|
rm -f *.o *.exe *.gpi *.gpm
|
|
else
|
|
if exist *.o del *.o
|
|
if exist *.exe del *.exe
|
|
if exist *.gpi del *.gpi
|
|
if exist *.gpm del *.gpm
|
|
endif
|