summaryrefslogtreecommitdiff
path: root/net/wmq3/files/patch-Makefile
blob: 35fb478986d02f249e60bfff3837e02f9f9239ce (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
26
27
28
29
30
31
32
33
34
35
36
37
38
--- Makefile.orig	Fri Dec  7 03:35:14 2001
+++ Makefile	Sat Dec 29 23:02:58 2001
@@ -1,30 +1,15 @@
-LIBDIR = -L/usr/X11R6/lib
-MANDIR = /usr/local/man/man1/
-INSTALL = install
+LIBDIR = -L${X11BASE}/lib
 LIBS   = -lXpm -lXext -lX11
+CFLAGS += -I${X11BASE}/include
 OBJS =	wmq3.o \
 		../wmgeneral/wmgeneral.o \
 		../wmgeneral/misc.o \
 		../wmgeneral/list.o
 
-
 .c.o:
-	cc -c -O2 -Wall $< -o $*.o
+	${CC} -c $< -o $*.o $(CFLAGS)
 
 wmq3: $(OBJS)
-	cc -o wmq3 $^ -lXext $(LIBDIR) $(LIBS)
-
-all:: wmifs
-
-clean::
-	for i in $(OBJS) ; do \
-		rm $$i ; \
-	done
-	rm wmq3
+	${CC} -o wmq3 $^ -lXext $(LIBDIR) $(LIBS)
 
-install::
-	cp -f wmq3 /usr/local/bin/
-	cp -f wmq3rc /etc/
-	chmod 755 /usr/local/bin/wmq3
-	chown root:root /usr/local/bin/wmq3
-	$(INSTALL) -m 644 -o root -g root ./wmq3.1 $(MANDIR)
+all: wmq3