blob: 7d1659de06e9b3cf0d6f74e4280d95d210fbcc2e (
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
|
$NetBSD: patch-aa,v 1.3 2011/03/28 13:13:34 obache Exp $
--- Makefile.orig Tue Jul 10 22:17:31 2001
+++ Makefile
@@ -1,11 +1,11 @@
# Configure as appropriate.
-KERB_INCLUDES = -I/usr/local/include
-KERB_LIBDIR = /usr/local/lib
+KERB_INCLUDES = -I${LOCALBASE}/include
+KERB_LIBDIR = ${LOCALBASE}/lib
KERB_LIBS = -L$(KERB_LIBDIR) -lkrb -ldes -lcom_err
-ZEPHYR_INCLUDES = -I/usr/local/include
-ZEPHYR_LIBDIR = /usr/local/lib
+ZEPHYR_INCLUDES = -I${LOCALBASE}/include
+ZEPHYR_LIBDIR = ${LOCALBASE}/lib
ZEPHYR_LIBS = -L$(ZEPHYR_LIBDIR) -lzephyr
# You may need to use these to pick up some BSD'ish functions like flock().
@@ -29,6 +29,8 @@ CFLAGS = -g -O -Wall $(DEFINES) $(INCLUD
LIBS = $(ZEPHYR_LIBS) $(KERB_LIBS) $(MISC_LIBS)
+all: tzc
+
tzc: tzc.o lread.o $(EXTRA_OBJS)
$(LD) $(LDFLAGS) -o tzc.new tzc.o lread.o $(EXTRA_OBJS) $(LIBS)
/bin/mv tzc.new tzc
@@ -38,3 +40,6 @@ tzc.o: lread.h
clean:
/bin/rm -f *.o tzc tzc.new core
+
+install:
+ ${INSTALL} tzc ${DESTDIR}${PREFIX}/bin/tzc
|