summaryrefslogtreecommitdiff
path: root/misc/gman/files/patch-Makefile
blob: 7eccdc10570479f240ab8767d3e5268b4b32f75e (plain)
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
--- Makefile.orig	Sat Mar 31 19:05:24 2001
+++ Makefile	Sat Apr 14 04:19:15 2001
@@ -1,18 +1,18 @@
 # Gman Makefile
 # You can adjust the following variables.
-CXX = g++
-CXXFLAGS = -DVERSION=\"0.9.2\" `gtk-config --cflags` -O2 #-Wall
+CXX ?= g++
+CXXFLAGS += -DVERSION=\"0.9.2\" `${GTK_CONFIG} --cflags gthread` #-Wall
 CC = $(CXX) $(CXXFLAGS)
 
 GNOMELIB = #`gnome-config --libs gnomeui`
-prefix = /usr
+prefix = ${PREFIX}
 cgi_bin_prefix = /home/httpd/cgi-bin
 
 # There shouldn't be any need to edit anything below this point.
 all: gman
 
 gman: menu.o mandata.o util.o gman.o list.o context.o task.o taskfunc.o window2.o
-	$(CC) -lgtk -lgdk -lpthread $(GNOMELIB) menu.o mandata.o util.o gman.o list.o context.o task.o taskfunc.o window2.o -o gman
+	$(CC) `${GTK_CONFIG} --libs gthread` $(GNOMELIB) menu.o mandata.o util.o gman.o list.o context.o task.o taskfunc.o window2.o -o gman
 
 gman.o: gman.c menu.h
 	$(CC) -c gman.c