-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
69 lines (49 loc) · 1.39 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#
# Makefile
#
# $Id: Makefile,v 1.1 1992/10/02 01:02:32 craigs Exp $
#
OBJ = .o
PROG = nenscript
MAN = $(PROG).1
SOURCES = main.c postscri.c print.c fontwidt.c font_lis.c paper.c
OBJECTS = $(SOURCES:.c=.o)
INSTALLDIR = /usr/local
BININSTALLDIR = $(INSTALLDIR)/bin
MANINSTALLDIR = $(INSTALLDIR)/man/man1
LOCALINSTALLDIR = $(HOME)/bin
LOCALMANINSTALLDIR = $(HOME)/man/man1
#
# uncomment macro below for debug version
#
#DEBUG = -g
#
# US_VERSION selects default US paper format as well as selecting US format date
#
CFLAGS = -O $(DEBUG) -DUS_VERSION
LFLAGS =
CHMOD = chmod
CP = cp
RM = rm
#INSTALL = /etc/install
INSTALL = /usr/ucb/install -c
all debug: $(PROG)
$(PROG): $(OBJECTS)
$(CC) $(CFLAGS) -o $@ $(OBJECTS)
main.$(OBJ): main.c
install: $(PROG)
$(INSTALL) -s -m 555 $(PROG) $(BININSTALLDIR)
$(INSTALL) -m 444 $(MAN) $(MANINSTALLDIR)
install.man: $(MAN)
$(INSTALL) -f $(MAININSTALLDIR) -m 444 $(MAN)
install.local: $(PROG) $(MAN)
$(INSTALL) -s -m 555 $(PROG) $(LOCALINSTALLDIR)
$(INSTALL) -m 444 $(MAN) $(LOCALMANINSTALLDIR)
clean:
rm -f *.o *.obj *.exe *.mdt $(PROG)
font_lis.c: machdep.h defs.h font_lis.h main.h
fontwidt.c: machdep.h defs.h fontwidt.h main.h
main.c: machdep.h defs.h version.h postscri.h print.h main.h paper.h
paper.c: machdep.h paper.h
postscri.c: machdep.h defs.h paper.h postscri.h fontwidt.h font_lis.h main.h
print.c: machdep.h defs.h print.h postscri.h main.h