~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to kscd/makefiles/Makefile.hpux

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# @(#)Makefile.hpux     1.9 04 Jun 1995
 
2
 
 
3
# Set these to the locations of your XView include files and libraries.
 
4
INCDIR = /usr/include/X11
 
5
LIBDIR = /usr/lib/X11
 
6
 
 
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"
 
9
# files live.
 
10
BINDIR = /usr/local/bin
 
11
HLPDIR = /usr/lib/X11/help
 
12
 
 
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
 
16
 
 
17
# Set these to the manual sections (e.g. 1, 4, 5, l) for the program and
 
18
# database file manual pages, respectively.
 
19
PEXT = 1
 
20
DEXT = 5
 
21
 
 
22
#
 
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.
 
27
#
 
28
 
 
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
 
31
 
 
32
# And you shouldn't need to change anything from this line on.
 
33
 
 
34
############################################################################
 
35
# Parameters.
 
36
 
 
37
PROGRAM = workman
 
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
 
47
 
 
48
# Compiler flags.
 
49
 
 
50
CFLAGS = -O -Wp,-H,256000 -I$(INCDIR)
 
51
LDFLAGS = -L$(LIBDIR)
 
52
LDLIBS = -lxview -lolgx -lX11 -lBSD
 
53
 
 
54
# Standard targets.
 
55
 
 
56
all:     $(PROGRAM) $(PROGRAM).doc workmandb.doc
 
57
 
 
58
$(PROGRAM): $(SOURCES.c) $(OBJECTS)
 
59
        $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LDLIBS)
 
60
 
 
61
buildindex: buildindex.c
 
62
        $(CC) $(LDFLAGS) $(CFLAGS) $(DBCFLAGS) buildindex.c $(DBLIB) -o $@
 
63
 
 
64
clean:
 
65
        $(RM) $(OBJECTS) *.BAK *.delta core
 
66
 
 
67
install: $(PROGRAM)
 
68
        cp $(PROGRAM) $(BINDIR)
 
69
        chmod 755 $(BINDIR)/$(PROGRAM)
 
70
        cp $(PROGRAM).info $(HLPDIR)
 
71
        chmod 644 $(HLPDIR)/$(PROGRAM).info
 
72
 
 
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)
 
78
 
 
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
 
84
$(OBJECTS): struct.h
 
85
 
 
86
index.o: index.c
 
87
        $(CC) $(CFLAGS) $(DBCFLAGS) -c $<
 
88
 
 
89
$(PROGRAM).doc: $(PROGRAM).man
 
90
        nroff -man $(PROGRAM).man > $(PROGRAM).doc
 
91
workmandb.doc: workmandb.man
 
92
        nroff -man workmandb.man > workmandb.doc