|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CC = gcc |
|
|
|
|
|
|
|
|
|
|
|
DATABASE= VECTORWISE |
|
MACHINE = LINUX |
|
WORKLOAD = TPCH |
|
|
|
CFLAGS = -g -DDBNAME=\"dss\" -D$(MACHINE) -D$(DATABASE) -D$(WORKLOAD) -DRNG_TEST -D_FILE_OFFSET_BITS=64 |
|
LDFLAGS = -O |
|
# 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 |
|
############### |
|
VERSION=2 |
|
RELEASE=13 |
|
PATCH=0 |
|
BUILD=`grep BUILD release.h | cut -f3 -d' '` |
|
NEW_BUILD=`expr ${BUILD} + 1` |
|
TREE_ROOT=/tmp/tree |
|
# |
|
PROG1 = dbgen$(EXE) |
|
PROG2 = qgen$(EXE) |
|
PROGS = $(PROG1) $(PROG2) |
|
# |
|
HDR1 = dss.h rnd.h config.h dsstypes.h shared.h bcd2.h rng64.h release.h |
|
HDR2 = tpcd.h permute.h |
|
HDR = $(HDR1) $(HDR2) |
|
# |
|
SRC1 = build.c driver.c bm_utils.c rnd.c print.c load_stub.c bcd2.c \ |
|
speed_seed.c text.c permute.c rng64.c |
|
SRC2 = qgen.c varsub.c |
|
SRC = $(SRC1) $(SRC2) |
|
# |
|
OBJ1 = build$(OBJ) driver$(OBJ) bm_utils$(OBJ) rnd$(OBJ) print$(OBJ) \ |
|
load_stub$(OBJ) bcd2$(OBJ) speed_seed$(OBJ) text$(OBJ) permute$(OBJ) \ |
|
rng64$(OBJ) |
|
OBJ2 = build$(OBJ) bm_utils$(OBJ) qgen$(OBJ) rnd$(OBJ) varsub$(OBJ) \ |
|
text$(OBJ) bcd2$(OBJ) permute$(OBJ) speed_seed$(OBJ) rng64$(OBJ) |
|
OBJS = $(OBJ1) $(OBJ2) |
|
# |
|
SETS = dists.dss |
|
DOC=README HISTORY PORTING.NOTES BUGS |
|
DDL = dss.ddl dss.ri |
|
WINDOWS_IDE = tpch.dsw dbgen.dsp tpch.sln tpch.vcproj qgen.vcproj |
|
OTHER=makefile.suite $(SETS) $(DDL) $(WINDOWS_IDE) |
|
# case is *important* in TEST_RES |
|
TEST_RES = O.res L.res c.res s.res P.res S.res n.res r.res |
|
# |
|
DBGENSRC=$(SRC1) $(HDR1) $(OTHER) $(DOC) $(SRC2) $(HDR2) $(SRC3) |
|
FQD=queries/1.sql queries/2.sql queries/3.sql queries/4.sql queries/5.sql queries/6.sql queries/7.sql \ |
|
queries/8.sql queries/9.sql queries/10.sql queries/11.sql queries/12.sql queries/13.sql \ |
|
queries/14.sql queries/15.sql queries/16.sql queries/17.sql queries/18.sql queries/19.sql queries/20.sql \ |
|
queries/21.sql queries/22.sql |
|
VARIANTS= variants/8a.sql variants/12a.sql variants/13a.sql variants/14a.sql variants/15a.sql |
|
ANS = answers/q1.out answers/q2.out answers/q3.out answers/q4.out answers/q5.out answers/q6.out answers/q7.out answers/q8.out \ |
|
answers/q9.out answers/q10.out answers/q11.out answers/q12.out answers/q13.out answers/q14.out answers/q15.out \ |
|
answers/q16.out answers/q17.out answers/q18.out answers/q19.out answers/q20.out answers/q21.out answers/q22.out |
|
QSRC = $(FQD) $(VARIANTS) $(ANS) |
|
TREE_DOC=tree.readme tree.changes appendix.readme appendix.version answers.readme queries.readme variants.readme |
|
REFERENCE=reference/[tcR]* |
|
REFERENCE_DATA=referenceData/[13]* |
|
SCRIPTS= check55.sh column_split.sh dop.sh gen_tasks.sh last_row.sh load_balance.sh new55.sh check_dirs.sh |
|
ALLSRC=$(DBGENSRC) $(REFERENCE) $(QSRC) $(SCRIPTS) |
|
JUNK = |
|
# |
|
all: $(PROGS) |
|
$(PROG1): $(OBJ1) $(SETS) |
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ1) $(LIBS) |
|
$(PROG2): permute.h $(OBJ2) |
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ2) $(LIBS) |
|
clean: |
|
rm -f $(PROGS) $(OBJS) $(JUNK) |
|
lint: |
|
lint $(CFLAGS) -u -x -wO -Ma -p $(SRC1) |
|
lint $(CFLAGS) -u -x -wO -Ma -p $(SRC2) |
|
|
|
tar: $(ALLSRC) |
|
tar cvhf - $(ALLSRC) --exclude .svn\*/\* |gzip - > tpch_${VERSION}_${RELEASE}_${PATCH}.tar.gz |
|
tar cvhf - $(REFERENCE_DATA) --exclude .svn\*/\* |gzip - > reference_${VERSION}_${RELEASE}_${PATCH}.tar.gz |
|
zip: $(ALLSRC) |
|
zip -r tpch_${VERSION}_${RELEASE}_${PATCH}.zip $(ALLSRC) -x *.svn* |
|
zip -r reference_${VERSION}_${RELEASE}_${PATCH}.zip $(REFERENCE_DATA) -x *.svn* |
|
release: |
|
make -f makefile.suite tar |
|
make -f makefile.suite zip |
|
( cd tests; sh test_list.sh `date '+%Y%m%d'` ) |
|
rnd$(OBJ): rnd.h |
|
$(OBJ1): $(HDR1) |
|
$(OBJ2): dss.h tpcd.h config.h rng64.h release.h |
|
|