| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/math/grpn/files/ |
Upload File : |
--- 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)