aboutsummaryrefslogtreecommitdiffstats
path: root/x11-clocks/wmitime/files/patch-aa
blob: 7a8b2d6f481319d990ef8474a1e8c2a88be14621 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
--- Makefile.orig   Mon Mar 29 12:51:39 1999
+++ Makefile    Sat Aug 12 01:03:21 2000
@@ -1,7 +1,9 @@
-#LANG = fr
-LIBDIR = -L/usr/X11R6/lib
+CC ?= gcc
+CFLAGS ?= -O2
+INCDIR = -I${X11BASE}/include
+DESTDIR = ${PREFIX}
+LIBDIR = -L${X11BASE}/lib
 LIBS   = -lXpm -lXext -lX11 -lm
-FLAGS = -O2
 OBJS = wmitime.o \
        ../wmgeneral/wmgeneral.o \
        ../wmgeneral/misc.o \
@@ -9,10 +11,10 @@
 
 
 .c.o:
-   cc -I/usr/X11R6/share/include $(FLAGS) -D$(LANG) -c -Wall $< -o $*.o
+   $(CC) $(CFLAGS) -D$(OPSYS) -c $< -o $@ $(INCDIR)
 
 wmtime: $(OBJS)
-   cc $(FLAGS) -D$(LANG) -o wmitime $^ -lXext $(LIBDIR) $(LIBS)
+    $(CC) $(CFLAGS) $(SYSTEM) -o wmitime $(OBJS) $(LIBDIR) $(LIBS)
 
 all:: wmtime
 
@@ -24,24 +26,5 @@
    rm -f *~
 
 install:: wmitime
-   cp -f wmitime /usr/local/bin/
-   chmod 755 /usr/local/bin/wmitime
-   chown root:root /usr/local/bin/wmitime
-#  cp wminetrc $(HOME)/.wminetrc
-#  chmod 600 $(HOME)/.wminetrc
-#  cp wminetrc /etc/wminetrc
-#  chmod 644 /etc/wminetrc
+   ${BSD_INSTALL_PROGRAM} wmitime $(DESTDIR)/bin
    @echo "wmitime Installation finished..."
-
-
-
-
-
-
-
-
-
-
-
-
-