2
MODULE_TOPDIR = ../../..
6
include $(MODULE_TOPDIR)/include/Make/Platform.make
7
include $(MODULE_TOPDIR)/include/Make/Grass.make
8
include $(MODULE_TOPDIR)/include/Make/Rules.make
10
LIBES = $(DRIVERLIB) $(GISLIB) $(FTLIB) $(ICONVLIB)
11
DEPENDENCIES = $(DRIVERDEP) $(GISDEP)
13
# if you are compiling under X11R3 add this define
15
# and comment out this line
18
# For those compiling on Intergraph machines, uncomment the following 2 lines:
19
#XCFLAGS=-DINTERGRAPH -DX11R3
21
# these are for the CDC mips machine
22
#XCFLAGS=-systype bsd43
23
#XLDFLAGS=-systype bsd43
25
# One user reported that he had to load -lsockstub for SCO-UNIX under X11R3
26
# we record his comment here for anyone that may have problems under SCO-UNIX
27
# This problem was NOT reported when CWU did the port to SCO-UNIX
28
#XEXTRALIBS=-lsockstub
30
# On the Silcon Graphics Boxes, the standard XOpenDisplay() fails when
31
# trying to display to another machine if the machine is named on
32
# the DISPLAY variable instead of it IP address. Loading the -lsun
33
# library resolves this problem
36
EXTRA_CFLAGS=$(XCFLAGS) $(R3DEFINE) -I../../../lib/driver
64
ARCH_OBJS := $(foreach obj,$(OBJS),OBJ.$(ARCH)/$(obj))
66
#FREETYPEBASED = Draw_point.o
67
#compile if FreeType Lib present:
68
#ifneq ($(strip $(FTLIB)),)
69
# OBJS += $(FREETYPEBASED)
72
default: $(DRIVERDIR)/XDRIVER $(HTMLDIR)/$(PGM).html moncap
75
@if [ -f $(ETC)/monitorcap ] && egrep '^x0' $(ETC)/monitorcap >/dev/null 2>&1 ; then \
76
echo XDRIVER already defined in $(ETC)/monitorcap ; \
78
echo adding XDRIVER to $(ETC)/monitorcap ; \
79
cat moncap.entry >> $(ETC)/monitorcap ; \
82
$(DRIVERDIR)/XDRIVER: $(ARCH_OBJS) $(DEPENDENCIES)
83
$(CC) $(LDFLAGS) -o $@ $(XLDFLAGS) $(LIBPATH) $(ARCH_OBJS) $(LIBES) $(XLIBPATH) $(XLIB) $(XEXTRALIBS) $(MATHLIB) $(XDRLIB)