blob: 389f1bd4709dbb715b81e3813624be615571709e (
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
|
$NetBSD: patch-aa,v 1.2 2001/06/15 22:46:27 wiz Exp $
--- Makefile.orig Wed Oct 20 11:40:45 1999
+++ Makefile Wed Oct 20 11:43:33 1999
@@ -3,12 +3,25 @@
OBJS= Dclock.o dclock.o
HFILES= Dclock.h DclockP.h patchlevel.h
-CFLAGS= -O
-LDFLAGS=
+CFLAGS= -O -I$(X11BASE)/include
+LDFLAGS= -L$(X11BASE)/lib -Wl,-R$(X11BASE)/lib
LIBS= -lXt -lX11
+# Make this link properly on Solaris
+OPSYS!= uname -s
+
+.if ${OPSYS} == "SunOS"
+LIBS+= -lSM -lICE -lsocket -lnsl
+.endif
+
+all: dclock
+
dclock: ${OBJS}
- cc ${LDFLAGS} ${OBJS} ${LIBS} -o dclock
+ ${CC} ${LDFLAGS} ${OBJS} ${LIBS} -o dclock
+
+install: dclock
+ ${BSD_INSTALL_PROGRAM} dclock $(PREFIX)/bin
+ ${BSD_INSTALL_MAN} dclock.man $(PREFIX)/man/man1/dclock.1
clean: ; rm -f ${OBJS} core dclock
|