1
# @(#)Makefile.hpux 1.9 04 Jun 1995
3
# Set these to the locations of your XView include files and libraries.
4
INCDIR = /usr/include/X11
7
# Set these to the directory names in which to install the software and
8
# help files. HLPDIR should point to wherever the other XView ".info"
10
BINDIR = /usr/local/bin
11
HLPDIR = /usr/lib/X11/help
13
# Set this to the directory containing manual pages. Manual pages will only
14
# be installed if you "make install.man".
15
MANDIR = /usr/local/man
17
# Set these to the manual sections (e.g. 1, 4, 5, l) for the program and
18
# database file manual pages, respectively.
23
# Uncomment the following if you want fast database lookups using the
24
# Berkeley libdb code. You can find libdb on ftp.cs.berkeley.edu in the
25
# /ucb/4bsd directory. Make sure you adjust the last part of DBCFLAGS
26
# to match your OS version as listed in libdb's PORT directory.
29
#DBCFLAGS = -DLIBDB -Idb.1.85/PORT/include -Idb.1.85/PORT/hpux.9.01
30
#DBLIB = db.1.85/PORT/hpux.9.01/libdb.a
32
# And you shouldn't need to change anything from this line on.
34
############################################################################
38
OBJECTS = workman_stubs.o database.o cdinfo.o display.o setup.o \
39
ui_cdinfo.o plat_sun.o plat_hpux.o plat_linux.o plat_news.o \
40
plat_bsd386.o plat_ultrix.o cdrom.o scsi.o drv_toshiba.o drv_sony.o \
41
plat_svr4.o plat_freebsd.o plat_osf1.o index.o
42
SOURCES.c = workman_stubs.c database.c cdinfo.c display.c setup.c \
43
ui_cdinfo.c plat_sun.c plat_hpux.c plat_linux.c plat_news.c \
44
plat_bsd386.c plat_ultrix.c cdrom.c scsi.c drv_toshiba.c drv_sony.c \
45
plat_svr4.c plat_freebsd.c plat_osf1.c index.c
46
SOURCES.h = struct.h workman_ui.h
50
CFLAGS = -O -Wp,-H,256000 -I$(INCDIR)
52
LDLIBS = -lxview -lolgx -lX11 -lBSD
56
all: $(PROGRAM) $(PROGRAM).doc workmandb.doc
58
$(PROGRAM): $(SOURCES.c) $(OBJECTS)
59
$(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LDLIBS)
61
buildindex: buildindex.c
62
$(CC) $(LDFLAGS) $(CFLAGS) $(DBCFLAGS) buildindex.c $(DBLIB) -o $@
65
$(RM) $(OBJECTS) *.BAK *.delta core
68
cp $(PROGRAM) $(BINDIR)
69
chmod 755 $(BINDIR)/$(PROGRAM)
70
cp $(PROGRAM).info $(HLPDIR)
71
chmod 644 $(HLPDIR)/$(PROGRAM).info
73
install.man: workman.man workmandb.man $(MANDIR)/man$(PEXT) $(MANDIR)/man$(DEXT)
74
cp workman.man $(MANDIR)/man$(PEXT)/workman.$(PEXT)
75
chmod 644 $(MANDIR)/man$(PEXT)/workman.$(PEXT)
76
cp workmandb.man $(MANDIR)/man$(DEXT)/workmandb.$(DEXT)
77
chmod 644 $(MANDIR)/man$(DEXT)/workmandb.$(DEXT)
79
display.o: display.c workman_ui.h
80
setup.o: setup.c workman_ui.h
81
workman_stubs.o: workman_stubs.c workman_ui.h
82
ui_cdinfo.o: ui_cdinfo.c workman_ui.h
83
# This next one isn't completely true, but close enough
87
$(CC) $(CFLAGS) $(DBCFLAGS) -c $<
89
$(PROGRAM).doc: $(PROGRAM).man
90
nroff -man $(PROGRAM).man > $(PROGRAM).doc
91
workmandb.doc: workmandb.man
92
nroff -man workmandb.man > workmandb.doc