blob: 3f822290043cb3893af6cc9d06a4c79a0f21d897 (
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
40
41
42
43
44
45
|
--- Makefile.orig Fri Dec 11 22:15:44 1998
+++ Makefile Thu Aug 16 10:06:13 2001
@@ -1,19 +1,21 @@
-LIBDIR = -L/usr/X11R6/lib
-LIBS = -lXpm -lXext -lX11
-FLAGS = -O2
+LIBDIR = -L${LOCALBASE}/lib
+LIBS = -lXpm -lXext -lX11 -lkvm
+CFLAGS += -I${LOCALBASE}/include
+CFLAGS += -DDEFAULT_WMINETRC="\"${PREFIX}/etc/wminetrc\""
OBJS = wminet.o \
../wmgeneral/wmgeneral.o \
../wmgeneral/misc.o \
../wmgeneral/list.o
+PROG = wminet
.c.o:
- cc -I/usr/X11R6/share/include $(FLAGS) -c -Wall $< -o $*.o
+ ${CC} $(CFLAGS) -c $< -o $@
-wminet: $(OBJS)
- cc $(FLAGS) -o wminet $^ -lXext $(LIBDIR) $(LIBS)
+$(PROG): $(OBJS)
+ ${CC} $(CFLAGS) -o $@ $(OBJS) $(LIBDIR) $(LIBS)
-all:: wminet
+all:: $(PROG)
clean::
for i in $(OBJS) ; do \
@@ -23,11 +25,5 @@
rm -f *~
install:: wminet
- cp -f wminet /usr/local/bin/
- chmod 755 /usr/local/bin/wminet
- chown root:root /usr/local/bin/wminet
- cp wminetrc $(HOME)/.wminetrc
- chmod 600 $(HOME)/.wminetrc
- cp wminetrc /etc/wminetrc
- chmod 644 /etc/wminetrc
- @echo "WMiNET Installation finished..."
+ ${INSTALL} -c -s -g kmem -m 2755 -o root $(PROG) ${PREFIX}/bin
+ ${INSTALL} -c -g wheel -m 644 -o root wminetrc ${PREFIX}/etc/wminetrc
|