13.07.2015 Views

IBM Flex System x240 w

IBM Flex System x240 w

IBM Flex System x240 w

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

* Current time in SECONDS, precision MILLISECONDS */double current_time_ms(void){/* gettimeofday() returns seconds and microseconds *//* convert to fractional seconds */struct timeval t;gettimeofday(&t,NULL);return (t.tv_sec + (double)t.tv_usec/(1000*1000));}dbgen/Makefile################################################################################ Licensed Materials - Property of <strong>IBM</strong>#### (C) COPYRIGHT International Business Machines Corp. 1996, 2010## All Rights Reserved.#### US Government Users Restricted Rights - Use, duplication or## disclosure restricted by GSA ADP Schedule Contract with <strong>IBM</strong> Corp.################################################################################ Makefile - Build gendata tool#include $(TPCC_ROOT)/Makefile.config# ######################################################################### Preprocessor, Compiler and Linker Flags# ########################################################################INCLUDE =-I$(TPCC_SQLLIB)/include -I$(TPCC_ROOT)/includeCFLAGS = $(INCLUDE) $(CFLAGS_OS) -DLINT_ARGS -DSQLA_NOLINES \-D$(DB2EDITION) $(CFLAGS_DEBUG)LDFLAGS =$(LDFLAGS_EXEC) $(LDFLAGS_LIB)# ######################################################################### File Collections# ########################################################################OBJS = tpccrnd$(OBJEXT) \$(TPCC_ROOT)/Src.Common/tpccmisc$(OBJEXT)OBJ_EEE = $(TPCC_ROOT)/Src.Common/tpcclwh$(OBJEXT)EXEC =gendata$(BINEXT)# ######################################################################### End-User Targets# ########################################################################all:clean:$(EXEC)- $(ERASE) *$(OBJEXT) $(EXEC)# ######################################################################### Build Rules# ########################################################################.SUFFIXES:.SUFFIXES: $(OBJEXT) .c# We use $@$(OBJEXT) here so that the UNIX makefiles work with both# 'traditional' make and GNU make$(EXEC):$(LD_EXEC) $(LDFLAGS) $(OBJS) $@$(OBJEXT) $(LDFLAGS_OUT)$@# ######################################################################### Dependencies# ######################################################################### Link Dependenciesgendata$(BINEXT):# Build Dependencies# Sourcegendata$(OBJEXT):$(OBJS) gendata$(OBJEXT)gendata.c# Headersgendata.c:$(TPCC_ROOT)/include/tpccrnd.h $(TPCC_ROOT)/include/lval.h

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!