2000-08-09 16:46:48 +00:00
|
|
|
--- Makefile.orig Wed Jan 6 11:28:39 1999
|
|
|
|
+++ Makefile Thu Aug 3 21:28:34 2000
|
|
|
|
@@ -1,8 +1,8 @@
|
1999-04-30 04:55:56 +00:00
|
|
|
-CC = gcc
|
|
|
|
-CFLAGS = -O2 -Wall
|
|
|
|
-INCDIR = -I/usr/X11R6/include/X11
|
2000-08-09 16:46:48 +00:00
|
|
|
-DESTDIR= /usr/X11R6
|
|
|
|
-LIBDIR = -L/usr/X11R6/lib
|
1999-04-30 04:55:56 +00:00
|
|
|
+CC ?= gcc
|
|
|
|
+CFLAGS ?= -O2
|
2000-08-09 16:46:48 +00:00
|
|
|
+INCDIR = -I${X11BASE}/include
|
|
|
|
+DESTDIR= ${PREFIX}
|
|
|
|
+LIBDIR = -L${X11BASE}/lib
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -22,14 +22,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
- $(CC) $(COPTS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
|
|
|
|
+ $(CC) $(CFLAGS) -D$(OPSYS) -c $< -o $@ $(INCDIR)
|
|
|
|
|
|
|
|
|
|
|
|
all: wmSun.o wmSun
|
|
|
|
|
|
|
|
wmSun.o: wmSun_master.xpm wmSun_mask.xbm
|
|
|
|
wmSun: $(OBJS)
|
|
|
|
- $(CC) $(COPTS) $(SYSTEM) -lm -o wmSun $^ $(INCDIR) $(LIBDIR) $(LIBS)
|
|
|
|
+ $(CC) $(CFLAGS) $(SYSTEM) -lm -o wmSun $(OBJS) $(LIBDIR) $(LIBS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
for i in $(OBJS) ; do \
|
|
|
|
@@ -38,6 +38,6 @@
|
|
|
|
rm -f wmSun
|
|
|
|
|
|
|
|
install:: wmSun
|
|
|
|
- install -s -m 0755 wmSun $(DESTDIR)/bin
|
|
|
|
- install -m 0644 wmSun.1 $(DESTDIR)/man/man1
|
|
|
|
+ ${BSD_INSTALL_PROGRAM} wmSun $(DESTDIR)/bin
|
|
|
|
+ ${BSD_INSTALL_MAN} wmSun.1 $(DESTDIR)/man/man1
|
1999-04-30 04:55:56 +00:00
|
|
|
|