$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