2
# @(#)Makefile.svr4 1.6 04 Jun 1995
4
# NOTE: this is not for Solaris. Use the regular Makefile for that OS.
9
# Set these to the locations of your XView include files and libraries.
10
INCDIR = -I/usr/ucbinclude -I/usr/X386/include
11
LIBDIR = /usr/X386/lib
13
# Set these to the directory names in which to install the software and
14
# help files. HLPDIR should point to wherever the other XView ".info"
16
BINDIR = /usr/local/bin
17
HLPDIR = /usr/X386/lib/X11/help
19
# Set this to the directory containing manual pages. Manual pages will only
20
# be installed if you "make install.man".
21
MANDIR = /usr/local/man
23
# Set these to the manual sections (e.g. 1, 4, 5, l) for the program and
24
# database file manual pages, respectively.
28
# And you shouldn't need to change anything from this line on.
30
############################################################################
34
OBJECTS = workman_stubs.o database.o cdinfo.o display.o setup.o \
35
ui_cdinfo.o plat_sun.o plat_hpux.o plat_linux.o plat_news.o \
36
plat_bsd386.o plat_ultrix.o cdrom.o scsi.o drv_toshiba.o drv_sony.o \
37
plat_svr4.o plat_freebsd.o plat_osf1.o index.o
38
SOURCES.c = workman_stubs.c database.c cdinfo.c display.c setup.c \
39
ui_cdinfo.c plat_sun.c plat_hpux.c plat_linux.c plat_news.c \
40
plat_bsd386.c plat_ultrix.c cdrom.c scsi.c drv_toshiba.c drv_sony.c \
41
plat_svr4.c plat_freebsd.c plat_osf1.c index.c
42
SOURCES.h = struct.h workman_ui.h
46
CFLAGS = -g -DSVR4 -D_RUSAGE_DEF $(INCDIR)
48
LDLIBS = -lxview -lolgx -lX11
52
all: $(PROGRAM) $(PROGRAM).doc workmandb.doc
54
$(PROGRAM): $(SOURCES.c) $(OBJECTS)
55
LD_RUN_PATH=$(LIBDIR) export LD_RUN_PATH ; $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LDLIBS)
62
rm $(OBJECTS) *.BAK *.delta core
65
cp $(PROGRAM) $(BINDIR)
66
cp $(PROGRAM).info $(HLPDIR)
67
chmod 644 $(HLPDIR)/$(PROGRAM).info
69
install.man: workman.man workmandb.man $(MANDIR)/man$(PEXT) $(MANDIR)/man$(DEXT)
70
cp workman.man $(MANDIR)/man$(PEXT)/workman.$(PEXT)
71
chmod 644 $(MANDIR)/man$(PEXT)/workman.$(PEXT)
72
cp workmandb.man $(MANDIR)/man$(DEXT)/workmandb.$(DEXT)
73
chmod 644 $(MANDIR)/man$(DEXT)/workmandb.$(DEXT)
75
display.o: display.c workman_ui.h
76
setup.o: setup.c workman_ui.h
77
workman_stubs.o: workman_stubs.c workman_ui.h
78
ui_cdinfo.o: ui_cdinfo.c workman_ui.h
79
# This next one isn't completely true, but close enough
83
$(CC) $(CFLAGS) $(DBCFLAGS) -c $<
85
$(PROGRAM).doc: $(PROGRAM).man
86
nroff -man $(PROGRAM).man > $(PROGRAM).doc
87
workmandb.doc: workmandb.man
88
nroff -man workmandb.man > workmandb.doc