-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
78 lines (51 loc) · 1.74 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
70
71
72
73
74
75
76
77
78
#
# Makefile for Minirel
#
.SUFFIXES: .o .C
#
# Compiler and loader definitions
#
LD = ld
LDFLAGS =
CXX = g++
CXXFLAGS = -g -Wall -DDEBUG #-DDEBUGIND -DDEBUGBUF
MAKEFILE = Makefile
# Comment out if purify not desired
#PURIFY = purify -collector=/usr/sup/purify/rld/ld -g++ -inuse-at-exit=yes
PURIFY = purify -collector=/usr/ccs/bin/ld -g++
#
# list of all object and source files
#
OBJS = buf.o bufHash.o db.o heapfile.o error.o page.o \
catalog.o create.o destroy.o \
help.o load.o print.o quit.o insert.o delete.o \
select.o join.o sort.o partition.o joinHT.o
DBOBJS = catalog.o buf.o bufHash.o db.o heapfile.o error.o page.o
NONCATOBJS = buf.o db.o heapfile.o error.o page.o sort.o
SRCS = buf.C bufHash.C db.C heapfile.C error.C page.C \
sort.C catalog.C \
create.C destroy.C help.C load.C print.C \
quit.C insert.C delete.C select.C join.C minirel.C \
dbcreate.C dbdestroy.C partition.C joinHT.C
LIBS = parser.o
all: minirel dbcreate dbdestroy
minirel: minirel.o $(OBJS) $(LIBS)
$(CXX) -o $@ $@.o $(OBJS) $(LIBS) $(LDFLAGS) -lm
parser.o:
(cd parser; make)
dbcreate: dbcreate.o $(DBOBJS)
$(CXX) -o $@ $@.o $(DBOBJS) $(LDFLAGS) -lm
dbdestroy: dbdestroy.o
$(CXX) -o $@ $@.o
minirel.pure: minirel.o $(OBJS) $(LIBS)
$(PURIFY) $(CXX) -o $@ minirel.o $(OBJS) $(LIBS) $(LDFLAGS) -lm
dbcreate.pure: dbcreate.o $(DBOBJS) $(LIBS)
$(PURIFY) $(CXX) -o $@ dbcreate.o $(DBOBJS) $(LDFLAGS) -lm
.C.o:
$(CXX) $(CXXFLAGS) -c $<
clean:
(rm -f core *.bak *~ *.o minirel dbcreate dbdestroy *.pure;cd parser;make clean)
depend:
makedepend -I /s/gcc/include/g++ -f$(MAKEFILE) \
$(SRCS)
# DO NOT DELETE THIS LINE -- make depend depends on it.