blob: 1e0641ad4ce559b1129c7f9a84996a48c339794e (
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
39
|
--- Makefile.orig Sun Nov 22 05:07:57 1998
+++ Makefile Fri Jun 21 15:07:46 2002
@@ -1,24 +1,20 @@
-LIBDIR = -L/usr/X11R6/lib
+CC ?= gcc
+CFLAGS += -c
+INCDIR = -I${LOCALBASE}/include
+LIBDIR = -L${LOCALBASE}/lib
LIBS = -lXpm -lXext -lX11
-CFLAGS = -O2
-OBJS = wmfmixer.o wmgeneral.o
+OBJS = wmfmixer.o wmgeneral.o
.c.o:
- cc -g -c $(CFLAGS) -Wall $< -o $*.o
+ ${CC} ${CFLAGS} ${INCDIR} $< -o $*.o
wmfmixer: $(OBJS)
- cc -o wmfmixer $^ -lXext $(LIBDIR) $(LIBS)
+ ${CC} -o wmfmixer $^ ${LIBDIR} ${LIBS}
-all:: wmfmixer
+all: wmfmixer
-clean::
- for i in $(OBJS) ; do \
- rm $$i; \
+clean:
+ for i in ${OBJS}; do \
+ rm -f $$i; \
done
- rm wmfmixer
-install::
-
- cp -f wmfmixer /usr/local/bin/
- chmod 755 /usr/local/bin/wmfmixer
- chown root:root /usr/local/bin/wmfmixer
- echo "WMFMIXER installation finished."
+ rm -f wmfmixer
|