|
| 1 | +# |
| 2 | +# $Id: makefile.suite,v 1.25 2009/10/22 19:10:21 jms Exp $ |
| 3 | +# |
| 4 | +# Revision History |
| 5 | +# =================== |
| 6 | +# $Log: makefile.suite,v $ |
| 7 | +# Revision 1.25 2009/10/22 19:10:21 jms |
| 8 | +# update revision to 2.9.0, disable bug55 fix |
| 9 | +# |
| 10 | +# Revision 1.24 2009/10/22 19:06:10 jms |
| 11 | +# update revision to 2.9.0, disable bug55 fix |
| 12 | +# |
| 13 | +# Revision 1.23 2009/06/28 14:01:08 jms |
| 14 | +# bug fix for DOP |
| 15 | +# |
| 16 | +# Revision 1.22 2008/09/15 16:37:46 jms |
| 17 | +# release 2.8.0 makefile.suite |
| 18 | +# |
| 19 | +# Revision 1.21 2008/03/21 18:26:54 jms |
| 20 | +# recursive zip for reference data, chmod for update_release |
| 21 | +# |
| 22 | +# Revision 1.20 2008/03/21 17:38:39 jms |
| 23 | +# changes for 2.6.3 |
| 24 | +# |
| 25 | +# Revision 1.19 2007/03/08 20:36:03 jms |
| 26 | +# update release number to 2.6.1 |
| 27 | +# |
| 28 | +# Revision 1.18 2007/02/06 18:15:56 jms |
| 29 | +# remove update release from general target |
| 30 | +# |
| 31 | +# Revision 1.17 2007/01/25 19:35:50 jms |
| 32 | +# add sln file used by VS2005 |
| 33 | +# |
| 34 | +# Revision 1.16 2007/01/05 20:05:41 jms |
| 35 | +# update release number |
| 36 | +# |
| 37 | +# Revision 1.15 2006/09/07 17:25:57 jms |
| 38 | +# correct dss.ddl |
| 39 | +# |
| 40 | +# Revision 1.14 2006/08/01 17:21:22 jms |
| 41 | +# fix bad merge |
| 42 | +# |
| 43 | +# Revision 1.13 2006/08/01 16:55:44 jms |
| 44 | +# move to 2.4.1 |
| 45 | +# |
| 46 | +# Revision 1.12 2006/06/29 20:46:17 jms |
| 47 | +# 2.4.0 changes from Meikel |
| 48 | +# |
| 49 | +# Revision 1.10 2006/05/25 22:30:44 jms |
| 50 | +# qgen porting for 32b/64b |
| 51 | +# |
| 52 | +# Revision 1.9 2006/04/26 23:17:09 jms |
| 53 | +# checking release.h prior to release build |
| 54 | +# |
| 55 | +# Revision 1.8 2006/04/26 23:03:00 jms |
| 56 | +# release 2.3.4-1 |
| 57 | +# |
| 58 | +# Revision 1.7 2006/04/12 18:13:58 jms |
| 59 | +# release 2.3.3 |
| 60 | +# |
| 61 | +# Revision 1.6 2006/03/09 18:59:19 jms |
| 62 | +# move to version 2.3.2 |
| 63 | +# |
| 64 | +# Revision 1.5 2006/01/28 23:54:32 jms |
| 65 | +# add reference data to release |
| 66 | +# |
| 67 | +# Revision 1.4 2005/10/28 03:00:32 jms |
| 68 | +# fix release target |
| 69 | +# |
| 70 | +# Revision 1.3 2005/10/28 02:54:14 jms |
| 71 | +# increment build count with each release creation |
| 72 | +# |
| 73 | +# Revision 1.2 2005/01/03 20:08:58 jms |
| 74 | +# change line terminations |
| 75 | +# |
| 76 | +# Revision 1.1.1.1 2004/11/24 23:31:47 jms |
| 77 | +# re-establish external server |
| 78 | +# |
| 79 | +# Revision 1.5 2004/03/26 20:39:23 jms |
| 80 | +# add tpch tag to release files |
| 81 | +# |
| 82 | +# Revision 1.4 2004/03/16 14:45:57 jms |
| 83 | +# correct release target in makefile |
| 84 | +# |
| 85 | +# Revision 1.3 2004/03/02 20:49:01 jms |
| 86 | +# simplify distributions, add Windows IDE files |
| 87 | +# releases should use make release from now on |
| 88 | +# |
| 89 | +# Revision 1.2 2004/02/18 14:05:53 jms |
| 90 | +# porting changes for LINUX and 64 bit RNG |
| 91 | +# |
| 92 | +# Revision 1.1.1.1 2003/04/03 18:54:21 jms |
| 93 | +# recreation after CVS crash |
| 94 | +# |
| 95 | +# Revision 1.1.1.1 2003/04/03 18:54:21 jms |
| 96 | +# initial checkin |
| 97 | +# |
| 98 | +# |
| 99 | +# |
| 100 | +################ |
| 101 | +## CHANGE NAME OF ANSI COMPILER HERE |
| 102 | +################ |
| 103 | +CC = gcc |
| 104 | +# Current values for DATABASE are: INFORMIX, DB2, TDAT (Teradata) |
| 105 | +# SQLSERVER, SYBASE, ORACLE, VECTORWISE |
| 106 | +# Current values for MACHINE are: ATT, DOS, HP, IBM, ICL, MVS, |
| 107 | +# SGI, SUN, U2200, VMS, LINUX, WIN32 |
| 108 | +# Current values for WORKLOAD are: TPCH |
| 109 | +DATABASE= VECTORWISE |
| 110 | +MACHINE = LINUX |
| 111 | +WORKLOAD = TPCH |
| 112 | +# |
| 113 | +CFLAGS = -g -DDBNAME=\"dss\" -D$(MACHINE) -D$(DATABASE) -D$(WORKLOAD) -DRNG_TEST -D_FILE_OFFSET_BITS=64 |
| 114 | +LDFLAGS = -O |
| 115 | +# The OBJ,EXE and LIB macros will need to be changed for compilation under |
| 116 | +# Windows NT |
| 117 | +OBJ = .o |
| 118 | +EXE = |
| 119 | +LIBS = -lm |
| 120 | +# |
| 121 | +# NO CHANGES SHOULD BE NECESSARY BELOW THIS LINE |
| 122 | +############### |
| 123 | +VERSION=2 |
| 124 | +RELEASE=13 |
| 125 | +PATCH=0 |
| 126 | +BUILD=`grep BUILD release.h | cut -f3 -d' '` |
| 127 | +NEW_BUILD=`expr ${BUILD} + 1` |
| 128 | +TREE_ROOT=/tmp/tree |
| 129 | +# |
| 130 | +PROG1 = dbgen$(EXE) |
| 131 | +PROG2 = qgen$(EXE) |
| 132 | +PROGS = $(PROG1) $(PROG2) |
| 133 | +# |
| 134 | +HDR1 = dss.h rnd.h config.h dsstypes.h shared.h bcd2.h rng64.h release.h |
| 135 | +HDR2 = tpcd.h permute.h |
| 136 | +HDR = $(HDR1) $(HDR2) |
| 137 | +# |
| 138 | +SRC1 = build.c driver.c bm_utils.c rnd.c print.c load_stub.c bcd2.c \ |
| 139 | + speed_seed.c text.c permute.c rng64.c |
| 140 | +SRC2 = qgen.c varsub.c |
| 141 | +SRC = $(SRC1) $(SRC2) |
| 142 | +# |
| 143 | +OBJ1 = build$(OBJ) driver$(OBJ) bm_utils$(OBJ) rnd$(OBJ) print$(OBJ) \ |
| 144 | + load_stub$(OBJ) bcd2$(OBJ) speed_seed$(OBJ) text$(OBJ) permute$(OBJ) \ |
| 145 | + rng64$(OBJ) |
| 146 | +OBJ2 = build$(OBJ) bm_utils$(OBJ) qgen$(OBJ) rnd$(OBJ) varsub$(OBJ) \ |
| 147 | + text$(OBJ) bcd2$(OBJ) permute$(OBJ) speed_seed$(OBJ) rng64$(OBJ) |
| 148 | +OBJS = $(OBJ1) $(OBJ2) |
| 149 | +# |
| 150 | +SETS = dists.dss |
| 151 | +DOC=README HISTORY PORTING.NOTES BUGS |
| 152 | +DDL = dss.ddl dss.ri |
| 153 | +WINDOWS_IDE = tpch.dsw dbgen.dsp tpch.sln tpch.vcproj qgen.vcproj |
| 154 | +OTHER=makefile.suite $(SETS) $(DDL) $(WINDOWS_IDE) |
| 155 | +# case is *important* in TEST_RES |
| 156 | +TEST_RES = O.res L.res c.res s.res P.res S.res n.res r.res |
| 157 | +# |
| 158 | +DBGENSRC=$(SRC1) $(HDR1) $(OTHER) $(DOC) $(SRC2) $(HDR2) $(SRC3) |
| 159 | +FQD=queries/1.sql queries/2.sql queries/3.sql queries/4.sql queries/5.sql queries/6.sql queries/7.sql \ |
| 160 | + queries/8.sql queries/9.sql queries/10.sql queries/11.sql queries/12.sql queries/13.sql \ |
| 161 | + queries/14.sql queries/15.sql queries/16.sql queries/17.sql queries/18.sql queries/19.sql queries/20.sql \ |
| 162 | + queries/21.sql queries/22.sql |
| 163 | +VARIANTS= variants/8a.sql variants/12a.sql variants/13a.sql variants/14a.sql variants/15a.sql |
| 164 | +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 \ |
| 165 | + answers/q9.out answers/q10.out answers/q11.out answers/q12.out answers/q13.out answers/q14.out answers/q15.out \ |
| 166 | + answers/q16.out answers/q17.out answers/q18.out answers/q19.out answers/q20.out answers/q21.out answers/q22.out |
| 167 | +QSRC = $(FQD) $(VARIANTS) $(ANS) |
| 168 | +TREE_DOC=tree.readme tree.changes appendix.readme appendix.version answers.readme queries.readme variants.readme |
| 169 | +REFERENCE=reference/[tcR]* |
| 170 | +REFERENCE_DATA=referenceData/[13]* |
| 171 | +SCRIPTS= check55.sh column_split.sh dop.sh gen_tasks.sh last_row.sh load_balance.sh new55.sh check_dirs.sh |
| 172 | +ALLSRC=$(DBGENSRC) $(REFERENCE) $(QSRC) $(SCRIPTS) |
| 173 | +JUNK = |
| 174 | +# |
| 175 | +all: $(PROGS) |
| 176 | +$(PROG1): $(OBJ1) $(SETS) |
| 177 | + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ1) $(LIBS) |
| 178 | +$(PROG2): permute.h $(OBJ2) |
| 179 | + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ2) $(LIBS) |
| 180 | +clean: |
| 181 | + rm -f $(PROGS) $(OBJS) $(JUNK) |
| 182 | +lint: |
| 183 | + lint $(CFLAGS) -u -x -wO -Ma -p $(SRC1) |
| 184 | + lint $(CFLAGS) -u -x -wO -Ma -p $(SRC2) |
| 185 | + |
| 186 | +tar: $(ALLSRC) |
| 187 | + tar cvhf - $(ALLSRC) --exclude .svn\*/\* |gzip - > tpch_${VERSION}_${RELEASE}_${PATCH}.tar.gz |
| 188 | + tar cvhf - $(REFERENCE_DATA) --exclude .svn\*/\* |gzip - > reference_${VERSION}_${RELEASE}_${PATCH}.tar.gz |
| 189 | +zip: $(ALLSRC) |
| 190 | + zip -r tpch_${VERSION}_${RELEASE}_${PATCH}.zip $(ALLSRC) -x *.svn* |
| 191 | + zip -r reference_${VERSION}_${RELEASE}_${PATCH}.zip $(REFERENCE_DATA) -x *.svn* |
| 192 | +release: |
| 193 | + make -f makefile.suite tar |
| 194 | + make -f makefile.suite zip |
| 195 | + ( cd tests; sh test_list.sh `date '+%Y%m%d'` ) |
| 196 | +rnd$(OBJ): rnd.h |
| 197 | +$(OBJ1): $(HDR1) |
| 198 | +$(OBJ2): dss.h tpcd.h config.h rng64.h release.h |
0 commit comments