From 510bdfca69cdf1491fcfba4c49a2bf8d79f7577c Mon Sep 17 00:00:00 2001 From: Eric Eide Date: Tue, 23 May 2017 16:17:51 -0600 Subject: [PATCH] On Windows, add `lrand48` sources to Csmith (Automake) compile. When using the Automake-based build system to compile Csmith on Windows, compile and link with an implementation of `lrand48`. This commit is the Automake equivalent of the CMake changes that I made earlier (in commit ef1f45a). Having implemented this for the Automake- and CMake-based build systems, I'm thinking that I should change the test. We don't care about the platform per se; we care whether or not it has `lrand48`. We should probably just check for that directly. --- Makefile.in | 5 - configure | 67 +++----- configure.ac | 12 +- doc/Makefile.in | 5 - runtime/Makefile.in | 5 - scripts/Makefile.in | 5 - src/Makefile.am | 12 ++ src/Makefile.in | 385 ++++++++++++++++++++++---------------------- 8 files changed, 236 insertions(+), 260 deletions(-) diff --git a/Makefile.in b/Makefile.in index 2dcca75cf..898358531 100644 --- a/Makefile.in +++ b/Makefile.in @@ -89,7 +89,6 @@ PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ -target_triplet = @target@ subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ @@ -333,11 +332,7 @@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ -target = @target@ target_alias = @target_alias@ -target_cpu = @target_cpu@ -target_os = @target_os@ -target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ diff --git a/configure b/configure index 6b1fda853..5c7a7e380 100755 --- a/configure +++ b/configure @@ -637,6 +637,8 @@ am__EXEEXT_TRUE LTLIBOBJS LIBOBJS M4 +WINDOWS_FALSE +WINDOWS_TRUE CXXCPP CPP LT_SYS_LIBRARY_PATH @@ -714,10 +716,6 @@ am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM -target_os -target_vendor -target_cpu -target host_os host_vendor host_cpu @@ -1398,7 +1396,6 @@ Program names: System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] - --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi @@ -2374,45 +2371,6 @@ IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 -$as_echo_n "checking target system type... " >&6; } -if ${ac_cv_target+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "x$target_alias" = x; then - ac_cv_target=$ac_cv_host -else - ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 -$as_echo "$ac_cv_target" >&6; } -case $ac_cv_target in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; -esac -target=$ac_cv_target -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_target -shift -target_cpu=$1 -target_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -target_os=$* -IFS=$ac_save_IFS -case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac - - -# The aliases save the names the user supplied, while $host etc. -# will get canonicalized. -test -n "$target_alias" && - test "$program_prefix$program_suffix$program_transform_name" = \ - NONENONEs,x,x, && - program_prefix=${target_alias}- # `-Wno-portability': avoid warnings about using `:=' in `Makefile.am' files. am__api_version='1.15' @@ -15856,6 +15814,23 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu +# Determine if we are compiling for Windows. +# +test_windows=no +case "${host_os}" in + cygwin*|mingw*|windows*) + test_windows=yes + ;; +esac + if test "$test_windows" = "yes"; then + WINDOWS_TRUE= + WINDOWS_FALSE='#' +else + WINDOWS_TRUE='#' + WINDOWS_FALSE= +fi + + # If we're using g++, set the default `CXXFLAGS' to something more pedantic. # if test "$ac_test_CXXFLAGS" = set; then @@ -16053,6 +16028,10 @@ if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then + as_fn_error $? "conditional \"WINDOWS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 diff --git a/configure.ac b/configure.ac index 118bd5ff8..f82cd600e 100644 --- a/configure.ac +++ b/configure.ac @@ -37,7 +37,7 @@ AC_CONFIG_AUX_DIR(autoconf) AC_CONFIG_MACRO_DIR(m4) AC_CONFIG_HEADERS(config.h) -AC_CANONICAL_TARGET +AC_CANONICAL_HOST # `-Wno-portability': avoid warnings about using `:=' in `Makefile.am' files. AM_INIT_AUTOMAKE([-Wall -Wno-portability]) @@ -56,6 +56,16 @@ AC_PROG_CXX AC_PROG_RANLIB AC_PROG_LIBTOOL +# Determine if we are compiling for Windows. +# +test_windows=no +case "${host_os}" in + cygwin*|mingw*|windows*) + test_windows=yes + ;; +esac +AM_CONDITIONAL([WINDOWS], [test "$test_windows" = "yes"]) + # If we're using g++, set the default `CXXFLAGS' to something more pedantic. # if test "$ac_test_CXXFLAGS" = set; then diff --git a/doc/Makefile.in b/doc/Makefile.in index 15183934d..f531596d2 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -90,7 +90,6 @@ PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ -target_triplet = @target@ subdir = doc ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ @@ -274,11 +273,7 @@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ -target = @target@ target_alias = @target_alias@ -target_cpu = @target_cpu@ -target_os = @target_os@ -target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ diff --git a/runtime/Makefile.in b/runtime/Makefile.in index 5a7cb1340..d0c67a840 100644 --- a/runtime/Makefile.in +++ b/runtime/Makefile.in @@ -92,7 +92,6 @@ PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ -target_triplet = @target@ subdir = runtime ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ @@ -339,11 +338,7 @@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ -target = @target@ target_alias = @target_alias@ -target_cpu = @target_cpu@ -target_os = @target_os@ -target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ diff --git a/scripts/Makefile.in b/scripts/Makefile.in index 64d50b2a6..433a93e9a 100644 --- a/scripts/Makefile.in +++ b/scripts/Makefile.in @@ -90,7 +90,6 @@ PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ -target_triplet = @target@ subdir = scripts ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ @@ -274,11 +273,7 @@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ -target = @target@ target_alias = @target_alias@ -target_cpu = @target_cpu@ -target_os = @target_os@ -target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ diff --git a/src/Makefile.am b/src/Makefile.am index 3ff918dbf..87482b6b9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -29,6 +29,9 @@ ############################################################################### +# For source files in `windows/'. +AUTOMAKE_OPTIONS = subdir-objects + bin_PROGRAMS = csmith GIT_HASH := $(shell "$(top_srcdir)/git-hash.sh" "$(top_srcdir)" || echo error) @@ -212,6 +215,15 @@ csmith_SOURCES = \ nodist_csmith_SOURCES = \ git_version.cpp +# Windows lacks `lrand48', so we provide an implementation. +if WINDOWS +csmith_SOURCES += \ + windows/_rand48.c \ + windows/lrand48.c \ + windows/rand48.h \ + windows/srand48.c +endif + EXTRA_DIST = \ CMakeLists.txt \ csmith.vcproj \ diff --git a/src/Makefile.in b/src/Makefile.in index b4a4be3f8..b88ef4774 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -90,8 +90,15 @@ PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ -target_triplet = @target@ bin_PROGRAMS = csmith$(EXEEXT) + +# Windows lacks `lrand48', so we provide an implementation. +@WINDOWS_TRUE@am__append_1 = \ +@WINDOWS_TRUE@ windows/_rand48.c \ +@WINDOWS_TRUE@ windows/lrand48.c \ +@WINDOWS_TRUE@ windows/rand48.h \ +@WINDOWS_TRUE@ windows/srand48.c + subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ @@ -107,6 +114,61 @@ CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) +am__csmith_SOURCES_DIST = AbsExtension.cpp AbsExtension.h \ + AbsProgramGenerator.cpp AbsProgramGenerator.h \ + AbsRndNumGenerator.cpp AbsRndNumGenerator.h ArrayVariable.cpp \ + ArrayVariable.h Block.cpp Block.h Bookkeeper.cpp Bookkeeper.h \ + CFGEdge.cpp CFGEdge.h CGContext.cpp CGContext.h CGOptions.cpp \ + CGOptions.h CVQualifiers.cpp CVQualifiers.h Common.h \ + CommonMacros.h CompatibleChecker.cpp CompatibleChecker.h \ + Constant.cpp Constant.h CoverageTestExtension.cpp \ + CoverageTestExtension.h CrestExtension.cpp CrestExtension.h \ + DFSOutputMgr.cpp DFSOutputMgr.h DFSProgramGenerator.cpp \ + DFSProgramGenerator.h DFSRndNumGenerator.cpp \ + DFSRndNumGenerator.h DefaultOutputMgr.cpp DefaultOutputMgr.h \ + DefaultProgramGenerator.cpp DefaultProgramGenerator.h \ + DefaultRndNumGenerator.cpp DefaultRndNumGenerator.h \ + DeltaMonitor.cpp DeltaMonitor.h DepthSpec.cpp DepthSpec.h \ + Effect.cpp Effect.h Enumerator.h Error.cpp Error.h \ + Expression.cpp Expression.h ExpressionAssign.cpp \ + ExpressionAssign.h ExpressionComma.cpp ExpressionComma.h \ + ExpressionFuncall.cpp ExpressionFuncall.h \ + ExpressionVariable.cpp ExpressionVariable.h ExtensionMgr.cpp \ + ExtensionMgr.h ExtensionValue.cpp ExtensionValue.h Fact.cpp \ + Fact.h FactMgr.cpp FactMgr.h FactPointTo.cpp FactPointTo.h \ + FactUnion.cpp FactUnion.h Filter.cpp Filter.h Finalization.cpp \ + Finalization.h Function.cpp Function.h FunctionInvocation.cpp \ + FunctionInvocation.h FunctionInvocationBinary.cpp \ + FunctionInvocationBinary.h FunctionInvocationUnary.cpp \ + FunctionInvocationUnary.h FunctionInvocationUser.cpp \ + FunctionInvocationUser.h KleeExtension.cpp KleeExtension.h \ + Lhs.cpp Lhs.h LinearSequence.cpp LinearSequence.h \ + MspFilters.cpp MspFilters.h OutputMgr.cpp OutputMgr.h \ + PartialExpander.cpp PartialExpander.h Probabilities.cpp \ + Probabilities.h ProbabilityTable.h RandomNumber.cpp \ + RandomNumber.h RandomProgramGenerator.cpp Reducer.cpp \ + Reducer.h ReducerOutputMgr.cpp ReducerOutputMgr.h \ + SafeOpFlags.cpp SafeOpFlags.h Sequence.cpp Sequence.h \ + SequenceFactory.cpp SequenceFactory.h SequenceLineParser.h \ + SimpleDeltaRndNumGenerator.cpp SimpleDeltaRndNumGenerator.h \ + SimpleDeltaSequence.cpp SimpleDeltaSequence.h \ + SplatExtension.cpp SplatExtension.h Statement.cpp Statement.h \ + StatementArrayOp.cpp StatementArrayOp.h StatementAssign.cpp \ + StatementAssign.h StatementBreak.cpp StatementBreak.h \ + StatementContinue.cpp StatementContinue.h StatementExpr.cpp \ + StatementExpr.h StatementFor.cpp StatementFor.h \ + StatementGoto.cpp StatementGoto.h StatementIf.cpp \ + StatementIf.h StatementReturn.cpp StatementReturn.h \ + StringUtils.cpp StringUtils.h Type.cpp Type.h Variable.cpp \ + Variable.h VariableSelector.cpp VariableSelector.h \ + VectorFilter.cpp VectorFilter.h git_version.h platform.cpp \ + platform.h random.cpp random.h util.cpp util.h \ + windows/_rand48.c windows/lrand48.c windows/rand48.h \ + windows/srand48.c +am__dirstamp = $(am__leading_dot)dirstamp +@WINDOWS_TRUE@am__objects_1 = windows/_rand48.$(OBJEXT) \ +@WINDOWS_TRUE@ windows/lrand48.$(OBJEXT) \ +@WINDOWS_TRUE@ windows/srand48.$(OBJEXT) am_csmith_OBJECTS = AbsExtension.$(OBJEXT) \ AbsProgramGenerator.$(OBJEXT) AbsRndNumGenerator.$(OBJEXT) \ ArrayVariable.$(OBJEXT) Block.$(OBJEXT) Bookkeeper.$(OBJEXT) \ @@ -143,7 +205,8 @@ am_csmith_OBJECTS = AbsExtension.$(OBJEXT) \ StatementIf.$(OBJEXT) StatementReturn.$(OBJEXT) \ StringUtils.$(OBJEXT) Type.$(OBJEXT) Variable.$(OBJEXT) \ VariableSelector.$(OBJEXT) VectorFilter.$(OBJEXT) \ - platform.$(OBJEXT) random.$(OBJEXT) util.$(OBJEXT) + platform.$(OBJEXT) random.$(OBJEXT) util.$(OBJEXT) \ + $(am__objects_1) nodist_csmith_OBJECTS = git_version.$(OBJEXT) csmith_OBJECTS = $(am_csmith_OBJECTS) $(nodist_csmith_OBJECTS) csmith_LDADD = $(LDADD) @@ -167,24 +230,6 @@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/autoconf/depcomp am__depfiles_maybe = depfiles am__mv = mv -f -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CXXFLAGS) $(CXXFLAGS) -AM_V_CXX = $(am__v_CXX_@AM_V@) -am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) -am__v_CXX_0 = @echo " CXX " $@; -am__v_CXX_1 = -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) -am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) -am__v_CXXLD_0 = @echo " CXXLD " $@; -am__v_CXXLD_1 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ @@ -203,8 +248,26 @@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +AM_V_CXX = $(am__v_CXX_@AM_V@) +am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) +am__v_CXX_0 = @echo " CXX " $@; +am__v_CXX_1 = +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) +am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) +am__v_CXXLD_0 = @echo " CXXLD " $@; +am__v_CXXLD_1 = SOURCES = $(csmith_SOURCES) $(nodist_csmith_SOURCES) -DIST_SOURCES = $(csmith_SOURCES) +DIST_SOURCES = $(am__csmith_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ @@ -349,14 +412,13 @@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ -target = @target@ target_alias = @target_alias@ -target_cpu = @target_cpu@ -target_os = @target_os@ -target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ + +# For source files in `windows/'. +AUTOMAKE_OPTIONS = subdir-objects GIT_HASH := $(shell "$(top_srcdir)/git-hash.sh" "$(top_srcdir)" || echo error) DUMMY1 := $(shell echo "$(GIT_HASH)" > git_version.txt.tmp) DUMMY2 := $(shell cmp -s git_version.txt.tmp git_version.txt || \ @@ -368,167 +430,55 @@ git_version_edit = sed \ # XXX --- yuck! -csmith_SOURCES = \ - AbsExtension.cpp \ - AbsExtension.h \ - AbsProgramGenerator.cpp \ - AbsProgramGenerator.h \ - AbsRndNumGenerator.cpp \ - AbsRndNumGenerator.h \ - ArrayVariable.cpp \ - ArrayVariable.h \ - Block.cpp \ - Block.h \ - Bookkeeper.cpp \ - Bookkeeper.h \ - CFGEdge.cpp \ - CFGEdge.h \ - CGContext.cpp \ - CGContext.h \ - CGOptions.cpp \ - CGOptions.h \ - CVQualifiers.cpp \ - CVQualifiers.h \ - Common.h \ - CommonMacros.h \ - CompatibleChecker.cpp \ - CompatibleChecker.h \ - Constant.cpp \ - Constant.h \ - CoverageTestExtension.cpp \ - CoverageTestExtension.h \ - CrestExtension.cpp \ - CrestExtension.h \ - DFSOutputMgr.cpp \ - DFSOutputMgr.h \ - DFSProgramGenerator.cpp \ - DFSProgramGenerator.h \ - DFSRndNumGenerator.cpp \ - DFSRndNumGenerator.h \ - DefaultOutputMgr.cpp \ - DefaultOutputMgr.h \ - DefaultProgramGenerator.cpp \ - DefaultProgramGenerator.h \ - DefaultRndNumGenerator.cpp \ - DefaultRndNumGenerator.h \ - DeltaMonitor.cpp \ - DeltaMonitor.h \ - DepthSpec.cpp \ - DepthSpec.h \ - Effect.cpp \ - Effect.h \ - Enumerator.h \ - Error.cpp \ - Error.h \ - Expression.cpp \ - Expression.h \ - ExpressionAssign.cpp \ - ExpressionAssign.h \ - ExpressionComma.cpp \ - ExpressionComma.h \ - ExpressionFuncall.cpp \ - ExpressionFuncall.h \ - ExpressionVariable.cpp \ - ExpressionVariable.h \ - ExtensionMgr.cpp \ - ExtensionMgr.h \ - ExtensionValue.cpp \ - ExtensionValue.h \ - Fact.cpp \ - Fact.h \ - FactMgr.cpp \ - FactMgr.h \ - FactPointTo.cpp \ - FactPointTo.h \ - FactUnion.cpp \ - FactUnion.h \ - Filter.cpp \ - Filter.h \ - Finalization.cpp \ - Finalization.h \ - Function.cpp \ - Function.h \ - FunctionInvocation.cpp \ - FunctionInvocation.h \ - FunctionInvocationBinary.cpp \ - FunctionInvocationBinary.h \ - FunctionInvocationUnary.cpp \ - FunctionInvocationUnary.h \ - FunctionInvocationUser.cpp \ - FunctionInvocationUser.h \ - KleeExtension.cpp \ - KleeExtension.h \ - Lhs.cpp \ - Lhs.h \ - LinearSequence.cpp \ - LinearSequence.h \ - MspFilters.cpp \ - MspFilters.h \ - OutputMgr.cpp \ - OutputMgr.h \ - PartialExpander.cpp \ - PartialExpander.h \ - Probabilities.cpp \ - Probabilities.h \ - ProbabilityTable.h \ - RandomNumber.cpp \ - RandomNumber.h \ - RandomProgramGenerator.cpp \ - Reducer.cpp \ - Reducer.h \ - ReducerOutputMgr.cpp \ - ReducerOutputMgr.h \ - SafeOpFlags.cpp \ - SafeOpFlags.h \ - Sequence.cpp \ - Sequence.h \ - SequenceFactory.cpp \ - SequenceFactory.h \ - SequenceLineParser.h \ - SimpleDeltaRndNumGenerator.cpp \ - SimpleDeltaRndNumGenerator.h \ - SimpleDeltaSequence.cpp \ - SimpleDeltaSequence.h \ - SplatExtension.cpp \ - SplatExtension.h \ - Statement.cpp \ - Statement.h \ - StatementArrayOp.cpp \ - StatementArrayOp.h \ - StatementAssign.cpp \ - StatementAssign.h \ - StatementBreak.cpp \ - StatementBreak.h \ - StatementContinue.cpp \ - StatementContinue.h \ - StatementExpr.cpp \ - StatementExpr.h \ - StatementFor.cpp \ - StatementFor.h \ - StatementGoto.cpp \ - StatementGoto.h \ - StatementIf.cpp \ - StatementIf.h \ - StatementReturn.cpp \ - StatementReturn.h \ - StringUtils.cpp \ - StringUtils.h \ - Type.cpp \ - Type.h \ - Variable.cpp \ - Variable.h \ - VariableSelector.cpp \ - VariableSelector.h \ - VectorFilter.cpp \ - VectorFilter.h \ - git_version.h \ - platform.cpp \ - platform.h \ - random.cpp \ - random.h \ - util.cpp \ - util.h - +csmith_SOURCES = AbsExtension.cpp AbsExtension.h \ + AbsProgramGenerator.cpp AbsProgramGenerator.h \ + AbsRndNumGenerator.cpp AbsRndNumGenerator.h ArrayVariable.cpp \ + ArrayVariable.h Block.cpp Block.h Bookkeeper.cpp Bookkeeper.h \ + CFGEdge.cpp CFGEdge.h CGContext.cpp CGContext.h CGOptions.cpp \ + CGOptions.h CVQualifiers.cpp CVQualifiers.h Common.h \ + CommonMacros.h CompatibleChecker.cpp CompatibleChecker.h \ + Constant.cpp Constant.h CoverageTestExtension.cpp \ + CoverageTestExtension.h CrestExtension.cpp CrestExtension.h \ + DFSOutputMgr.cpp DFSOutputMgr.h DFSProgramGenerator.cpp \ + DFSProgramGenerator.h DFSRndNumGenerator.cpp \ + DFSRndNumGenerator.h DefaultOutputMgr.cpp DefaultOutputMgr.h \ + DefaultProgramGenerator.cpp DefaultProgramGenerator.h \ + DefaultRndNumGenerator.cpp DefaultRndNumGenerator.h \ + DeltaMonitor.cpp DeltaMonitor.h DepthSpec.cpp DepthSpec.h \ + Effect.cpp Effect.h Enumerator.h Error.cpp Error.h \ + Expression.cpp Expression.h ExpressionAssign.cpp \ + ExpressionAssign.h ExpressionComma.cpp ExpressionComma.h \ + ExpressionFuncall.cpp ExpressionFuncall.h \ + ExpressionVariable.cpp ExpressionVariable.h ExtensionMgr.cpp \ + ExtensionMgr.h ExtensionValue.cpp ExtensionValue.h Fact.cpp \ + Fact.h FactMgr.cpp FactMgr.h FactPointTo.cpp FactPointTo.h \ + FactUnion.cpp FactUnion.h Filter.cpp Filter.h Finalization.cpp \ + Finalization.h Function.cpp Function.h FunctionInvocation.cpp \ + FunctionInvocation.h FunctionInvocationBinary.cpp \ + FunctionInvocationBinary.h FunctionInvocationUnary.cpp \ + FunctionInvocationUnary.h FunctionInvocationUser.cpp \ + FunctionInvocationUser.h KleeExtension.cpp KleeExtension.h \ + Lhs.cpp Lhs.h LinearSequence.cpp LinearSequence.h \ + MspFilters.cpp MspFilters.h OutputMgr.cpp OutputMgr.h \ + PartialExpander.cpp PartialExpander.h Probabilities.cpp \ + Probabilities.h ProbabilityTable.h RandomNumber.cpp \ + RandomNumber.h RandomProgramGenerator.cpp Reducer.cpp \ + Reducer.h ReducerOutputMgr.cpp ReducerOutputMgr.h \ + SafeOpFlags.cpp SafeOpFlags.h Sequence.cpp Sequence.h \ + SequenceFactory.cpp SequenceFactory.h SequenceLineParser.h \ + SimpleDeltaRndNumGenerator.cpp SimpleDeltaRndNumGenerator.h \ + SimpleDeltaSequence.cpp SimpleDeltaSequence.h \ + SplatExtension.cpp SplatExtension.h Statement.cpp Statement.h \ + StatementArrayOp.cpp StatementArrayOp.h StatementAssign.cpp \ + StatementAssign.h StatementBreak.cpp StatementBreak.h \ + StatementContinue.cpp StatementContinue.h StatementExpr.cpp \ + StatementExpr.h StatementFor.cpp StatementFor.h \ + StatementGoto.cpp StatementGoto.h StatementIf.cpp \ + StatementIf.h StatementReturn.cpp StatementReturn.h \ + StringUtils.cpp StringUtils.h Type.cpp Type.h Variable.cpp \ + Variable.h VariableSelector.cpp VariableSelector.h \ + VectorFilter.cpp VectorFilter.h git_version.h platform.cpp \ + platform.h random.cpp random.h util.cpp util.h $(am__append_1) nodist_csmith_SOURCES = \ git_version.cpp @@ -551,7 +501,7 @@ CLEANFILES = \ all: all-am .SUFFIXES: -.SUFFIXES: .cpp .lo .o .obj +.SUFFIXES: .c .cpp .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ @@ -630,6 +580,18 @@ clean-binPROGRAMS: list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list +windows/$(am__dirstamp): + @$(MKDIR_P) windows + @: > windows/$(am__dirstamp) +windows/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) windows/$(DEPDIR) + @: > windows/$(DEPDIR)/$(am__dirstamp) +windows/_rand48.$(OBJEXT): windows/$(am__dirstamp) \ + windows/$(DEPDIR)/$(am__dirstamp) +windows/lrand48.$(OBJEXT): windows/$(am__dirstamp) \ + windows/$(DEPDIR)/$(am__dirstamp) +windows/srand48.$(OBJEXT): windows/$(am__dirstamp) \ + windows/$(DEPDIR)/$(am__dirstamp) csmith$(EXEEXT): $(csmith_OBJECTS) $(csmith_DEPENDENCIES) $(EXTRA_csmith_DEPENDENCIES) @rm -f csmith$(EXEEXT) @@ -637,6 +599,7 @@ csmith$(EXEEXT): $(csmith_OBJECTS) $(csmith_DEPENDENCIES) $(EXTRA_csmith_DEPENDE mostlyclean-compile: -rm -f *.$(OBJEXT) + -rm -f windows/*.$(OBJEXT) distclean-compile: -rm -f *.tab.c @@ -719,24 +682,54 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/platform.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/random.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/util.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@windows/$(DEPDIR)/_rand48.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@windows/$(DEPDIR)/lrand48.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@windows/$(DEPDIR)/srand48.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< .cpp.o: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cpp.obj: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< @@ -863,6 +856,8 @@ clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -rm -f windows/$(DEPDIR)/$(am__dirstamp) + -rm -f windows/$(am__dirstamp) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -872,7 +867,7 @@ clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am - -rm -rf ./$(DEPDIR) + -rm -rf ./$(DEPDIR) windows/$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags @@ -918,7 +913,7 @@ install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) + -rm -rf ./$(DEPDIR) windows/$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic