-
Notifications
You must be signed in to change notification settings - Fork 1
/
pcalc.mak
71 lines (55 loc) · 1.93 KB
/
pcalc.mak
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
#---------------------------------------------------------------------
#
# pcalc makefile for MSC 'nmake' utility.
#
#---------------------------------------------------------------------
# definition
PROGRAM = pcalc.exe
MSC = cl
CFLAGS = -c -Ox -W2
INCL = -I.
CC = $(MSC) $(CFLAGS) $(INCL)
YACC = bison -ld
LEX = flex
HEADERS = pcalc.h hocdecl.h
OBASE0 = pcalc
OBASE1 = pcalcl
OBASE2 = funct
OBASE3 = math
OBASE4 = symbol
OBASE5 = help
OBASE6 = store
OBASE7 = print
OBASE8 = str
OBASE9 = convert
OBJS0 = $(OBASE0).obj
OBJS1 = $(OBASE1).obj
OBJS2 = $(OBASE2).obj
OBJS3 = $(OBASE3).obj
OBJS4 = $(OBASE4).obj
OBJS5 = $(OBASE5).obj
OBJS6 = $(OBASE6).obj
OBJS7 = $(OBASE7).obj
OBJS8 = $(OBASE8).obj
OBJS9 = $(OBASE9).obj
#---------------------------------------------------------------------
# construction rules
.c.obj:
$(CC) $*.c
#---------------------------------------------------------------------
# dependencies
pcalc.exe: $(OBJS0) $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) \
$(OBJS6) $(OBJS7) $(OBJS8) $(OBJS9)
link $(OBJS0) $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) \
$(OBJS6) $(OBJS7) $(OBJS8) $(OBJS9),,, /NOI /STACK:0x8000 ;
pcalc.obj: pcalc.y
$(YACC) $*.y
$(CC) $*.c
pcalcl.obj: pcalcl.l
$(LEX) $*.l
$(CC) -Fopcalcl.obj lexyy.c
$(OBASE2).obj: $(OBASE2).c $(HEADERS)
$(OBASE3).obj: $(OBASE3).c $(HEADERS)
$(OBASE4).obj: $(OBASE4).c $(HEADERS)
$(OBASE5).obj: $(OBASE5).c $(HEADERS)