summaryrefslogtreecommitdiff
path: root/math/grpn/files/patch-Makefile
blob: 9d94c0db7f9fe29f4696cb1ea7b98e7a7d126611 (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
38
--- Makefile.orig	2018-11-24 02:18:17 UTC
+++ Makefile
@@ -3,11 +3,11 @@
 # Please read the next few lines and enter the correct values.
 
 # where to install GRPN
-PREFIX = /usr/local
-MANDIR = ${PREFIX}/man
+PREFIX ?= /usr/local
+MANDIR ?= ${MANPREFIX}/man
 
 # What compiler should be used
-CC = gcc 
+CC ?= gcc
 
 # NOTE:
 #
@@ -16,10 +16,8 @@ CC = gcc 
 # add -DUSE_GNOME if you want to make grpn GNOME compliant.
 
 
-CFLAGS = -Wall -g -O2 -I/usr/X11/include -DUSE_PANGO `pkg-config --cflags gtk+-2.0` -DGTK_VER_1_1
+CFLAGS += -Wall -DUSE_PANGO `pkg-config --cflags gtk+-2.0` -DGTK_VER_1_1
 
-DFLAGS =  -L/usr/X11/lib 
-
 # end of user configurable section
 
 
@@ -32,6 +30,8 @@ OBJS = test_gtk_ver.o real.o complex.o matrix.o number
 	error.o help.o mode.o undo.o
 
 LIBS   = `pkg-config --libs gtk+-2.0` -lX11 -lm
+
+all: grpn
 
 grpn:	$(OBJS)
 	$(CC) $(DFLAGS) -o $@ $(OBJS) $(LIBS)