summaryrefslogtreecommitdiff
path: root/sysutils/wmcube/files/patch-Makefile.FREEBSD
blob: 1fea419acbbaf5237065b6d599ee2e939114a7f2 (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
--- Makefile.FREEBSD.orig	Thu Aug 16 14:22:12 2001
+++ Makefile.FREEBSD	Thu Aug 16 14:21:42 2001
@@ -1,15 +1,13 @@
-CC = gcc
 OS = -DFREEBSD
 
-LIBDIR = -L/usr/X11R6/lib
-LIBDIR = -L/usr/X11R6/lib
-INCDIR = -I/usr/X11R6/include
+LIBDIR = -L${X11BASE}/lib -L${LOCALBASE}/lib
+INCDIR = -I${X11BASE}/include
 
 # Edit OSLIBS as appropriate to include OS specific libraries.
 
 OSLIBS = -lkvm
 LIBS   = -lXpm -lXext -lX11 -lm $(OSLIBS)
-CFLAGS = -Wall -O2 $(OS)
+CFLAGS += -Wall $(OS)
 
 OBJS =	wmcube.o \
 	../wmgeneral/wmgeneral.o \
@@ -20,7 +18,7 @@
 	$(CC) $(CFLAGS) $(INCDIR) -c $< -o $*.o
 
 wmcube: $(OBJS)
-	$(CC) -o wmcube $(OBJS) -lXext $(LIBDIR) $(LIBS)
+	$(CC) -o wmcube $(OBJS) $(LIBDIR) $(LIBS)
 
 all:: wmcube