2010-03-23 16:38:20 -04:00
|
|
|
$OpenBSD: patch-Makefile,v 1.5 2010/03/23 20:38:20 jasper Exp $
|
|
|
|
|
|
|
|
- Honor cflags
|
|
|
|
- Port to gtk+2
|
|
|
|
|
|
|
|
--- Makefile.orig Fri Apr 5 05:56:05 2002
|
|
|
|
+++ Makefile Tue Mar 23 21:27:40 2010
|
|
|
|
@@ -19,11 +19,9 @@ GTK_DIR =
|
|
|
|
#
|
2000-12-17 21:17:11 -05:00
|
|
|
# add -DUSE_GNOME if you want to make grpn GNOME compliant.
|
|
|
|
|
2010-03-23 16:38:20 -04:00
|
|
|
+# We cheat by defining GTK_VER_1_1...
|
|
|
|
+CFLAGS +=`pkg-config --cflags gtk+-2.0` -DGTK_VER_1_1
|
2000-12-17 21:17:11 -05:00
|
|
|
|
|
|
|
-CFLAGS = -g -O2 -I/usr/X11/include `$(GTK_DIR)gtk-config --cflags` -DGTK_VER_1_1
|
2001-03-17 21:31:01 -05:00
|
|
|
-
|
2000-12-17 21:17:11 -05:00
|
|
|
-DFLAGS = -L/usr/X11/lib
|
2010-03-23 16:38:20 -04:00
|
|
|
-
|
2000-12-17 21:17:11 -05:00
|
|
|
# end of user configurable section
|
|
|
|
|
2010-03-23 16:38:20 -04:00
|
|
|
|
|
|
|
@@ -37,11 +35,11 @@ OBJS = test_gtk_ver.o real.o complex.o matrix.o number
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-LIBS = `$(GTK_DIR)gtk-config --libs` -lX11 -lm
|
|
|
|
+LIBS = `pkg-config --libs gtk+-2.0`
|
2000-12-17 21:17:11 -05:00
|
|
|
|
|
|
|
|
|
|
|
grpn: $(OBJS)
|
2002-12-21 20:30:45 -05:00
|
|
|
- $(CC) $(DFLAGS) -o $@ $(OBJS) $(LIBS)
|
|
|
|
+ $(CC) -o $@ $(OBJS) $(LIBS)
|
2000-12-17 21:17:11 -05:00
|
|
|
|
2002-12-21 20:30:45 -05:00
|
|
|
pure: $(OBJS)
|
2000-12-17 21:17:11 -05:00
|
|
|
$(PURIFY) $(CC) $(DFLAGS) -o $@ $(OBJS) $(LIBS)
|