blob: cc43c4b9393004a760237b5da5ab566af6f283b6 (
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
30
31
32
33
34
35
36
37
38
|
$FreeBSD$
--- Makefile.orig Thu May 16 12:16:40 2002
+++ Makefile Thu May 16 12:17:17 2002
@@ -1,21 +1,20 @@
-INCDIR = -I/usr/X11R6/include
-LIBDIR = -L/usr/X11R6/lib
-LIBS = -lXpm -lXext -lX11 -lm
-OBJS = wmjulia.o ../wmgeneral/wmgeneral.o
+CC ?= gcc
+CFLAGS += -c -Wall
+INCDIR = -I${LOCALBASE}/include
+LIBDIR = -L${LOCALBASE}/lib
+LIBS = -lXpm -lXext -lX11 -lm
+OBJS = wmjulia.o ../wmgeneral/wmgeneral.o
.c.o:
- cc -c -g -O2 -Wall -D$(shell echo `uname -s`) $< -o $*.o $(INCDIR)
-
-all: wmjulia
+ ${CC} ${CFLAGS} ${INCDIR} -D${shell echo `uname -s`} $< -o $*.o
wmjulia: $(OBJS)
- cc -o wmjulia $^ $(LIBDIR) $(LIBS)
+ ${CC} -o wmjulia $^ ${LIBDIR} ${LIBS}
+
+all: wmjulia
clean:
- for i in $(OBJS) ; do \
+ for i in ${OBJS}; do \
rm -f $$i; \
done
- rm -f wmjulia
-
-install:
- mv wmjulia /usr/local/bin
+ rm -f wmjulia core
|