summaryrefslogtreecommitdiff
path: root/graphics/xmrm/files/patch-aa
blob: dd13f58e8a171b3e9acf0bb93bed842aef720e99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- Makefile.orig	Mon Mar  9 18:00:00 1998
+++ Makefile	Mon Jul  1 03:46:01 2002
@@ -16,8 +16,8 @@
 #
 ##############################################################################
 
-CPP = g++
-CC = gcc
+CPP = c++
+CC = cc
 
 # -c: don't link yet
 # -g: produce debugging-information, don't use together with link_flag -s
@@ -28,15 +28,19 @@
 # -c: don't link yet
 #COMPILE_FLAGS = -O3 -m486 -c
 
+.if exists(${X11BASE}/include/X11/forms.h)
+XFORMSINC = -I${X11BASE}/include/X11
+.endif
+
 # -O: normal optimization level  -c: don't link yet
-COMPILE_FLAGS = -O -c
+COMPILE_FLAGS = ${CFLAGS} -I${PREFIX}/include -I${X11BASE}/include ${XFORMSINC} -c
 
 # -s: DESTROYS symbol-table
-LINK_FLAGS = -s
+#LINK_FLAGS = -s
 
 
-SYSLIB = -L/usr/X11R6/lib -lX11 -lm
-LIBS = -L/usr/lib -ltiff -ljpeg -lgz -lforms -lXpm $(SYSLIB)
+SYSLIB = -L${X11BASE}/lib -lX11 -lm
+LIBS = -L${PREFIX}/lib -ltiff -ljpeg -lz -lforms -lXpm $(SYSLIB)
 
 OBJECTS = xmrm.o xmrm_cb.o io.o morphvec.o init.o wavemorph.o wave_rts.o wave.o\
           areas.o xmrm_main.o