openbsd-ports/math/grpn/patches/patch-Makefile

42 lines
1017 B
Plaintext
Raw Normal View History

$OpenBSD: patch-Makefile,v 1.3 2002/09/03 08:30:49 mark Exp $
--- Makefile.orig Mon May 31 18:46:31 1999
+++ Makefile Mon Sep 2 23:43:52 2002
2001-03-17 21:31:01 -05:00
@@ -3,7 +3,7 @@
# Please read the next few lines and enter the correct values.
# What compiler should be used
-CC = gcc
+#CC = gcc
# Where to find the gtk-config script
GTK_DIR =
@@ -17,9 +17,7 @@ GTK_DIR =
# add -DUSE_GNOME if you want to make grpn GNOME compliant.
-CFLAGS = -g -O2 -I/usr/X11/include `$(GTK_DIR)gtk-config --cflags` -DGTK_VER_1_1
2001-03-17 21:31:01 -05:00
-
-DFLAGS = -L/usr/X11/lib
2001-03-17 21:31:01 -05:00
+CFLAGS += `$(GTK_DIR)gtk-config --cflags` -DGTK_VER_1_1
# end of user configurable section
2001-03-17 21:31:01 -05:00
@@ -36,7 +34,7 @@ OBJS = test_gtk_ver.o real.o complex.o m
LIBS = `$(GTK_DIR)gtk-config --libs` -lX11 -lm
-
+all: grpn
grpn: $(OBJS)
$(CC) $(DFLAGS) -o $@ $(OBJS) $(LIBS)
2001-03-17 21:31:01 -05:00
@@ -44,8 +42,6 @@ pure: $(OBJS)
$(PURIFY) $(CC) $(DFLAGS) -o $@ $(OBJS) $(LIBS)
install: grpn
- cp grpn /usr/local/bin
- chmod 755 /usr/local/bin/grpn
.c.o:
$(CC) -c -o $@ $(CFLAGS) $*.c