$OpenBSD: patch-Makefile,v 1.6 2017/11/03 13:52:15 espie Exp $ - Honor cflags - Port to gtk+2 - don't remove -lm Index: Makefile --- Makefile.orig +++ Makefile @@ -19,11 +19,9 @@ GTK_DIR = # # add -DUSE_GNOME if you want to make grpn GNOME compliant. +# We cheat by defining GTK_VER_1_1... +CFLAGS +=`pkg-config --cflags gtk+-2.0` -DGTK_VER_1_1 -CFLAGS = -g -O2 -I/usr/X11/include `$(GTK_DIR)gtk-config --cflags` -DGTK_VER_1_1 - -DFLAGS = -L/usr/X11/lib - # end of user configurable section @@ -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` -lm grpn: $(OBJS) - $(CC) $(DFLAGS) -o $@ $(OBJS) $(LIBS) + $(CC) -o $@ $(OBJS) $(LIBS) pure: $(OBJS) $(PURIFY) $(CC) $(DFLAGS) -o $@ $(OBJS) $(LIBS)