summaryrefslogtreecommitdiff
path: root/math/gexpr/files/patch-Makefile
blob: 7b034c88d8d00f8427bf704865a13969a69cb222 (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
--- ./Makefile.orig	1999-02-12 15:28:35.000000000 -0200
+++ ./Makefile	2014-02-16 15:38:19.000000000 -0300
@@ -1,11 +1,10 @@
 # Makefile for gexpr
 # Last updated: 10 February 1999
 
-CC	= gcc
-OPTS	= -s -O2 -Wall
+OPTS	= ${CFLAGS} ${CPPFLAGS}
 OBJS	= eval.o read_token.o commands.o output.o errors.o gexpr.o 
 GEXPR	= gexpr
-LIBS	= -lm
+LIBS	= -lm ${LDFLAGS}
 
 all: $(GEXPR)
 
@@ -31,8 +30,8 @@
 	$(CC) $(OPTS) -c gexpr.c
 
 install:
-	cp -f gexpr /usr/local/bin;
-	cp -f gexpr.1 /usr/local/man/man1
+	install -s gexpr ${DESTDIR}/usr/local/bin;
+	install gexpr.1 ${DESTDIR}/usr/local/share/man/man1
 	
 clean:
 	rm -f *.o core