-
Notifications
You must be signed in to change notification settings - Fork 4
/
makefile.dos
71 lines (50 loc) · 1.52 KB
/
makefile.dos
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
# Makefile for MS-DOS using Borland C (by P. Foggia)
#
DEST = .
HDRS = defs.h mstring.h
CFLAGS = -ml -c
LDFLAGS = /c
# Change LIBDIR to your compiler's library path
LIBDIR = L:\bc\lib
C0 = $(LIBDIR)\c0l.obj
CLIB = $(LIBDIR)\cl.lib
LIBS =
LINKER = tlink
CC = bcc
MAKEFILE = Makefile.dos
OBJS1 = closure.obj error.obj lalr.obj lr0.obj main.obj mkpar.obj output.obj
OBJS2 = mstring.obj reader.obj skeleton.obj symtab.obj verbose.obj warshall.obj
OBJS = $(OBJS1) $(OBJS2)
PROGRAM = btyacc.exe
SRCS = closure.c error.c lalr.c lr0.c main.c mkpar.c output.c \
mstring.c reader.c skeleton.c symtab.c verbose.c warshall.c
OTHERS = README README.BYACC \
Makefile btyaccpa.ske empty.y skel2c manpage
all: $(PROGRAM)
$(PROGRAM): $(OBJS) $(LIBS)
@echo Linking $(PROGRAM) ...
@echo $(LDFLAGS) $(C0) + > link.lst
@echo $(OBJS1) + >> link.lst
@echo $(OBJS2) >> link.lst
@echo $(PROGRAM) >>link.lst
@echo nul >> link.lst
@echo $(CLIB) >> link.lst
@$(LINKER) @link.lst
@echo ... done
program: $(PROGRAM)
skeleton.c: btyaccpa.ske
awk -f skel2c btyaccpa.ske >skeleton.c
###
closure.o: defs.h
error.o: defs.h
lalr.o: defs.h
lr0.o: defs.h
main.o: defs.h
mkpar.o: defs.h
mstring.o: mstring.h
output.o: defs.h
reader.o: defs.h mstring.h
skeleton.o: defs.h
symtab.o: defs.h
verbose.o: defs.h
warshall.o: defs.h