aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in16
1 files changed, 12 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in
index 39cc52c..c6dc6be 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -70,9 +70,9 @@ PTKLIB = @INSTALLARCHLIB@/Tk/pTk
SITEPERL = @SITEPERL@
PTKCFLAGS = -DPTK -I$(PTKLIB)
#
-# If the polygon clipper is used
-GPC = libgpc.so
-#GPC =
+# Define this to use the polygon clipper.
+GPC=libgpc.so
+#GPC=
#
# Recognized compilation time flags are :
@@ -83,7 +83,11 @@ GPC = libgpc.so
# SHAPE include code for reshaping windows.
# GPC include code for composing polygons.
#
-DFLAGS = -DOM -DSHAPE -DGPC
+ifeq ($(strip$(GPC)),)
+DFLAGS = -DOM -DSHAPE
+else
+DFLAGS = -DOM -DSHAPE -DGPC
+endif
#DFLAGS = -DTCL_MEM_DEBUG
#
@@ -187,7 +191,11 @@ doc/refman.html:
doc/refman.ps: doc/refman.tex
(cd doc; latex refman.tex; latex refman.tex; dvips -o refman.ps refman.dvi)
+ifeq ($(strip($GPC)),)
install: installtk installptk installom installgpc
+else
+install: installtk installptk installom
+endif
installom: libom.so
$(INSTALL_DATA) libom.so $(libdir)