-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (49 loc) · 1.43 KB
/
Makefile
File metadata and controls
66 lines (49 loc) · 1.43 KB
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
# Choose whether you want local heap, debugging, neither or both.
# If you change either of these be sure to delete all object files
# before the next make.
DEBUG=-DGW_DEBUG
#DEBUG=
#HEAP=-DLOCAL_HEAP -DCHK_USE
#HEAP=-DLOCAL_HEAP
HEAP=
MODEL=-ml
###########################################################
# Don't change below here, except to switch between DOS/UNIX
# or to change the log file setting.
DOSOSUF=.obj
UNIXOSUF=.o
DOSXSUF=.exe
UNIXXSUF=
DOSCFLAGS=-v -ls $(DEBUG) $(HEAP) $(MODEL)
UNIXCFLAGS=-g $(DEBUG) $(HEAP)
DOSLOG="gwtest.log"
UNIXLOG="\"gwtest.log\""
# UNIX OPTIONS
#CC=cc
#CFLAGS=$(UNIXCFLAGS) -ogwtest
#LOG=$(UNIXLOG)
#OSUF=$(UNIXOSUF)
#XSUF=$(UNIXXSUF)
#ZIP=zip
# DOS OPTIONS
CC=bcc
CFLAGS=$(DOSCFLAGS)
LOG=$(DOSLOG)
OSUF=$(DOSOSUF)
XSUF=$(DOSXSUF)
ZIP=pkzip
all: gwtest$(XSUF) testheap$(XSUF)
gwtest$(XSUF): gwtest$(OSUF) gwdebug$(OSUF) heap$(OSUF)
$(CC) $(CFLAGS) gwtest$(OSUF) gwdebug$(OSUF) heap$(OSUF)
testheap$(XSUF): testheap$(OSUF) gwdebug$(OSUF) heap$(OSUF)
$(CC) $(CFLAGS) testheap$(OSUF) gwdebug$(OSUF) heap$(OSUF)
gwtest$(OSUF): gwtest.c gwdebug.h heap.h
$(CC) -c $(CFLAGS) gwtest.c
testheap$(OSUF): testheap.c gwdebug.h heap.h
$(CC) -c $(CFLAGS) testheap.c
gwdebug$(OSUF): gwdebug.c gwdebug.h heap.h
$(CC) -c $(CFLAGS) -DDEBUG_LOG=$(LOG) gwdebug.c
gwheap$(OSUF): gwheap.c heap.h
$(CC) -c $(CFLAGS) gwheap.c
zip:
$(ZIP) -ur gwdebug gwdebug.c gwdebug.h gwtest.c heap.c heap.h testheap.c Makefile trace.c