blob: 410bf193920c963ee19788341838976223d7fb8a (
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
|
--- Makefile.orig Tue Jan 5 06:20:45 1999
+++ Makefile Thu Aug 3 21:29:28 2000
@@ -1,8 +1,8 @@
-CC = gcc
-CFLAGS = -O2 -Wall
-INCDIR = -I/usr/X11R6/include/X11
-DESTDIR= /usr/X11R6
-LIBDIR = -L/usr/X11R6/lib
+CC ?= gcc
+CFLAGS ?= -O2
+INCDIR = -I${LOCALBASE}/include
+DESTDIR= ${PREFIX}
+LIBDIR = -L${LOCALBASE}/lib
# for linux
LIBS = -lXpm -lX11 -lXext
# for Solaris
@@ -12,14 +12,14 @@
.c.o:
- $(CC) $(COPTS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
+ $(CC) $(CFLAGS) -D$(OPSYS) -c $< -o $@ $(INCDIR)
all: wmSpaceWeather.o wmSpaceWeather
wmSpaceWeather.o: wmSpaceWeather_master.xpm wmSpaceWeather_mask.xbm
wmSpaceWeather: $(OBJS)
- $(CC) $(COPTS) $(SYSTEM) -o wmSpaceWeather $^ $(INCDIR) $(LIBDIR) $(LIBS)
+ $(CC) $(CFLAGS) $(SYSTEM) -o wmSpaceWeather $(OBJS) $(LIBDIR) $(LIBS)
clean:
for i in $(OBJS) ; do \
@@ -28,7 +28,7 @@
rm -f wmSpaceWeather
install:: wmSpaceWeather
- install -s -m 0755 wmSpaceWeather $(DESTDIR)/bin
- install -m 0755 GetKp $(DESTDIR)/bin
- install -m 0644 wmSpaceWeather.1 $(DESTDIR)/man/man1
+ ${BSD_INSTALL_PROGRAM} wmSpaceWeather $(DESTDIR)/bin
+ ${BSD_INSTALL_SCRIPT} GetKp $(DESTDIR)/bin
+ ${BSD_INSTALL_MAN} wmSpaceWeather.1 $(DESTDIR)/man/man1
|