blob: 20975a64931ef543fa82bf3d55f5c14cf4a1ec06 (
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.1.1.1 2000/12/17 23:32:16 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 $(X11BASE)/bin
+ ${BSD_INSTALL_MAN} dclock.man $(X11BASE)/man/man1/dclock.1
clean: ; rm -f ${OBJS} core dclock
|