-
Notifications
You must be signed in to change notification settings - Fork 13
/
makefile_centos
80 lines (71 loc) · 2.31 KB
/
makefile_centos
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
# Sccsid: @(#)makefile.suite 9.1.1.13 12/14/95 16:06:25
# makefile for DSS benchamrk data generator
#
#
################
## CHANGE NAME OF ANSI COMPILER HERE
################
CC = gcc
# Current values for DATABASE are: INFORMIX, DB2, TDAT (Teradata),
# SQLSERVER, SYBASE, MYSQL
# Current values for PLATFORM are: ATT, DOS, HP, IBM, ICL, MVS,
# SGI, U2200, VMS, WIN32, CENTOS
DATABASE= MYSQL
PLATFORM= CENTOS
WORKLOAD = TPCH
#
CFLAGS = -O -D$(DATABASE) -D$(PLATFORM) -D$(WORKLOAD)
#CFLAGS = -O -D$(DATABASE) -D$(PLATFORM) -I/usr/include/sys
#CFLAGS = -O -D$(DATABASE) -D$(PLATFORM) -DRNG_TEST -D_FILE_OFFSET_BITS=64 -I/usr/include/sys
#CFLAGS = -g -DDBNAME=\"dss\" -D$(MACHINE) -D$(DATABASE) -D$(WORKLOAD) -DRNG_TEST -D_FILE_OFFSET_BITS=64 -I/usr/include/sys
LDFLAGS =
# The OBJ,EXE and LIB macros will need to be changed for compilation under
# Windows NT
OBJ = .o
EXE =
LIBS = -lm
#
# NO CHANGES SHOULD BE NECESSARY BELOW THIS LINE
###############
PROG1 = dbgen$(EXE)
PROG2 = qgen$(EXE)
HDR1 = dss.h rnd.h config.h dsstypes.h shared.h bcd2.h
SRC1 = build.c driver.c bm_utils.c rnd.c print.c load_stub.c bcd2.c speed_seed.c
OBJ1 = build$(OBJ) driver$(OBJ) bm_utils$(OBJ) rnd$(OBJ) print$(OBJ) load_stub$(OBJ) bcd2$(OBJ) speed_seed$(OBJ)
SETS = dists.dss
DDL = dss.ddl dss.ri
OTHER=makefile.suite $(SETS) $(DDL) 10001001
DOC=README History Porting.Notes FAQ
DBGENSRC=$(SRC1) $(HDR1) $(OTHER) $(DOC) $(SRC2) $(HDR2)
SRC2 = qgen.c varsub.c
HDR2 = tpcd.h
OBJ2 = build$(OBJ) bm_utils$(OBJ) qgen$(OBJ) rnd$(OBJ) varsub$(OBJ)
all: $(PROG1) $(PROG2)
$(PROG1): $(OBJ1) $(SETS)
$(CC) $(LDFLAGS) -o $@ $(OBJ1) $(LIBS)
$(PROG2): $(OBJ2)
$(CC) $(LDFLAGS) -o $@ $(OBJ2) $(LIBS)
clean:
rm -f $(PROG1) $(PROG2) $(OBJ1) $(OBJ2)
lint:
lint $(SRC)
tar: $(DBGENSRC)
tar cvhf $(PROG1).tar $(DBGENSRC)
dbgenshar: $(DBGENSRC)
shar -o dbgen.shar $(DBGENSRC)
dbgendisk: $(DBGENSRC)
for f in $(DBGENSRC) ; \
do \
unix2dos $$f /pcfs/$$f ; \
done
portable:
for f in $(DBGENSRC) ; \
do \
expand $$f > /tmp/foo; \
mv -f /tmp/foo $$f; \
awk 'length > 72 { print FILENAME ":" NR " too long " }' $$f ; \
done
rnd$(OBJ): rnd.h
$(OBJ1): config.h makefile
$(OBJ1): dss.h dsstypes.h
$(OBJ2): dss.h tpcd.h config.h