aboutsummaryrefslogtreecommitdiffstats
path: root/misc/wmx10/files/patch-aa
blob: 0cec3accd25adefce89efaf205722dc06f2a6ef9 (plain) (blame)
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
--- Makefile.orig   Mon Oct 18 06:25:17 1999
+++ Makefile    Fri Aug  6 17:40:19 2004
@@ -1,12 +1,12 @@
-INCDIR =   -I/usr/X11R6/include
-LIBDIR =   -L/usr/X11R6/lib
+INCDIR =   -I${LOCALBASE}/include
+LIBDIR =   -L${LOCALBASE}/lib
 LIBS   =   -lXpm -lXext -lX11
 OBJS   =   br_cmd.o wmx10.o ../wmgeneral/wmgeneral.o
-CFLAGS  =  -D$(shell echo `uname -s`) #-DDEBUG
-CC      =       gcc
+CFLAGS  +=     -D$(shell echo `uname -s`) #-DDEBUG
+CC      ?=       gcc
 
 .c.o:
-   $(CC) -c -O2 -Wall $(CFLAGS) $< -o $*.o $(INCDIR)
+   $(CC) -c $(CFLAGS) $< -o $*.o $(INCDIR)
 
 all: wmx10
 
@@ -19,6 +19,5 @@
    done
    rm -f wmx10 *~
 
-install:
-   strip wmx10
-   mv wmx10 /usr/local/bin
+install:   wmx10
+   ${BSD_INSTALL_PROGRAM} wmx10 ${LOCALBASE}/bin