blob: ac3dd82bf4827efdebf841bd76b3ff305f0effff (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
--- Makefile.orig Sun Mar 23 02:04:32 2003
+++ Makefile Sat Mar 29 22:29:46 2003
@@ -1,43 +1,23 @@
-#Makefile
+CC ?= cc
+LDIR = -L${LOCALBASE}/lib
+IDIR = -I${LOCALBASE}/include
-PREFIX=/usr/local
-BINDIR=$(PREFIX)/bin
-MANUALDIR=$(PREFIX)/share/man/man1
-CC=gcc
-STRIP=strip
-FLAGS=-Wall -O2 -ffast-math
-RM=rm -f
-INST=install
-OBJS=cpu_linux.o dockapp.o draw.o options.o timing.o wmbluecpu.o
-PROG=wmbluecpu
-MANUAL=$(PROG).1
-LIBS=-L/usr/X11R6/lib -lX11 -lXext -lXpm
+LIBS = -lX11 -lXpm -lXext -lkvm
-DEFS=-DOPT_TIMER_MILISECONDS=1000 -DOPT_WINDOW=0 -DOPT_SHAPE=1
+DEFS= -DOPT_TIMER_MILISECONDS=1000 -DOPT_WINDOW=0 -DOPT_SHAPE=1
# OPT_TIMER_MILISECONDS - the number of miliseconds between updates
# OPT_WINDOW - Run in a window ?
# OPT_SHAPE - Use XShape ?
-all: $(PROG)
+OBJS = cpu_freebsd.o\
+ dockapp.o\
+ draw.o\
+ options.o\
+ timing.o\
+ wmbluecpu.o
-$(PROG): $(OBJS)
- $(CC) -o $(PROG) $(OBJS) $(LIBS)
- $(STRIP) $(PROG)
-%.o: %.c
- $(CC) $(FLAGS) -c $< -o $@
-clean:
- $(RM) $(OBJS) $(PROG)
-install: $(PROG)
- $(INST) -m 755 $(PROG) $(BINDIR)
- $(INST) -m 644 $(MANUAL) $(MANUALDIR)
-uninstall:
- $(RM) $(BINDIR)/$(PROG)
- $(RM) $(MANUALDIR)/$(MANUAL)
+.c.o:
+ ${CC} ${CFLAGS} ${IDIR} ${DEFS} -c $< -o $*.o
-cpu_linux.o: cpu_linux.c
-dockapp.o: dockapp.c wmbluecpu.h options.h draw.h timing.h xpm/bg.xpm \
- xpm/on.xpm xpm/off.xpm xpm/numbers.xpm xpm/panel.xpm
-draw.o: draw.c cpu_linux.h dockapp.h options.h
-options.o: options.c options.h wmbluecpu.h
-timing.o: timing.c draw.h options.h cpu_linux.h
-wmbluecpu.o: wmbluecpu.c options.h dockapp.h timing.h
+all: ${OBJS}
+ ${CC} ${CFLAGS} -o wmbluecpu ${OBJS} ${LDIR} ${LIBS}
|