$OpenBSD: patch-Makefile,v 1.1 2003/09/01 03:08:52 krw Exp $ --- Makefile.orig 1997-06-10 05:47:39.000000000 -0400 +++ Makefile 2003-08-31 15:29:23.000000000 -0400 @@ -18,9 +18,9 @@ CC = gcc # SOL2 line. # -SOL2 = -DSYSV -DCODEC -LIBLOC = -R$(LIBDIR) -EXTRA_LIBS = -lsocket +#SOL2 = -DSYSV -DCODEC +#LIBLOC = -R$(LIBDIR) +#EXTRA_LIBS = -lsocket # # Uncomment the following if you want fast database lookups using the @@ -29,30 +29,30 @@ EXTRA_LIBS = -lsocket # to match your system type as listed in libdb's PORT directory. # -DBCFLAGS = -DLIBDB -Idb.1.85/PORT/include -Idb.1.85/PORT/sunos.5.2 -DBLIB = db.1.85/PORT/sunos.5.2/libdb.a +#DBCFLAGS = -DLIBDB -Idb.1.85/PORT/include -Idb.1.85/PORT/sunos.5.2 +#DBLIB = db.1.85/PORT/sunos.5.2/libdb.a # # Set these to the locations of your XView include files and libraries. # -INCDIR = $(OPENWINHOME)/include -LIBDIR = $(OPENWINHOME)/lib +INCDIR = /usr/include +LIBDIR = /usr/X11R6/lib # # Set these to the directory names in which to install the software and # help files. # -BINDIR = $(OPENWINHOME)/bin -HLPDIR = $(OPENWINHOME)/lib/help +BINDIR = ${PREFIX}/bin +HLPDIR = ${PREFIX}/lib/help # # Set this to the directory containing manual pages. Manual pages will only # be installed if you "make install.man". # -MANDIR = $(OPENWINHOME)/man +MANDIR = ${PREFIX}/man # # Set these to the manual sections (e.g. 1, 4, 5, l) for the program and @@ -83,7 +83,7 @@ OBJECTS = \ CFLAGS = -g CPPFLAGS = -I$(INCDIR) $(SOL2) LDFLAGS = -L$(LIBDIR) $(LIBLOC) -LDLIBS = -lxview -lolgx -lX11 $(EXTRA_LIBS) $(DBLIB) -ldl +LDLIBS = -lxview -lolgx -lX11 $(EXTRA_LIBS) $(DBLIB) #-ldl # Standard targets. @@ -96,15 +96,14 @@ buildindex: buildindex.c $(CC) $(LDFLAGS) $(DBCFLAGS) buildindex.c $(DBLIB) -o $@ clean: - $(RM) $(OBJECTS) *.BAK *.delta core + $(RM) $(OBJECTS) *.BAK *.delta *.core workman -install: $(PROGRAM) +install: $(PROGRAM) workman.man workmandb.man \ + $(MANDIR)/man$(PEXT) $(MANDIR)/man$(DEXT) cp $(PROGRAM) $(BINDIR) chmod 755 $(BINDIR)/$(PROGRAM) cp $(PROGRAM).info $(HLPDIR) chmod 644 $(HLPDIR)/$(PROGRAM).info - -install.man: workman.man workmandb.man $(MANDIR)/man$(PEXT) $(MANDIR)/man$(DEXT) cp workman.man $(MANDIR)/man$(PEXT)/workman.$(PEXT) chmod 644 $(MANDIR)/man$(PEXT)/workman.$(PEXT) cp workmandb.man $(MANDIR)/man$(DEXT)/workmandb.$(DEXT)