-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile.msc
82 lines (58 loc) · 1.74 KB
/
makefile.msc
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
70
71
72
73
74
75
76
77
78
79
80
81
82
#
# Makefile for MSC 6.00A using dmake 3.8 under OS/2
# Adapted with minor changes from the supplied Makefile.
# Files:
# nenscript.exe OS/2 executable
# nenscrib.exe OS/2 and MSDOS bound executable
# Darrel Hankerson [email protected], 4-Oct-92
#
.IMPORT : HOME
CC = cl
LINK = cl
BIND = bind
OBJ = .obj
BaseName = nenscript
PROG = $(BaseName).exe
MAN = $(BaseName).1
SOURCES = main.c postscri.c print.c fontwidt.c font_lis.c paper.c
OBJECTS = $(SOURCES:.c=.obj)
INSTALLDIR =
BININSTALLDIR = $(INSTALLDIR)/bin
MANINSTALLDIR = $(INSTALLDIR)/etc/man
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 = $(DEBUG) #-DUS_VERSION
LFLAGS = -Lp /F 5000
DEFS = -DMSDOS -D__STDC__
CHMOD = chmod
CP = cp
RM = rm -f
INSTALL = install
all debug: $(PROG) nenscrib.exe
$(PROG): $(OBJECTS) $(BaseName).def
$(LINK) $(LFLAGS) -o $@ $<
nenscrib.exe : $(PROG)
$(BIND) $< /o $@
.c.obj :; $(CC) -c $(CFLAGS) $(DEFS) $<
install: $(PROG)
$(INSTALL) $(PROG) $(BININSTALLDIR)
install.man: $(MAN)
$(INSTALL) $(MAN) $(MANINSTALLDIR)
install.local: $(PROG) $(MAN)
$(INSTALL) $(PROG) $(LOCALINSTALLDIR)
$(INSTALL) $(MAN) $(LOCALMANINSTALLDIR)
clean:
$(RM) *$(OBJ) *.mdt $(PROG) nenscrib.exe
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