Changeset 575a6e5
- Timestamp:
- Aug 9, 2018, 11:07:05 AM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 7a7ab42
- Parents:
- a5121bf
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile.am
ra5121bf r575a6e5 23 23 SUBDIRS = driver src . @LIBCFA_TARGET_DIRS@ 24 24 25 @LIBCFA_TARGET_MAKEFILES@ : Makefile 25 @LIBCFA_TARGET_MAKEFILES@ : Makefile $(srcdir)/libcfa/configure 26 26 @$(eval config_file = $(dir $@)config.data) 27 27 @ls $(config_file) || (echo "Missing config.data, re-run configure script again" && false) -
Makefile.in
ra5121bf r575a6e5 893 893 # order important 894 894 895 @LIBCFA_TARGET_MAKEFILES@ : Makefile 895 @LIBCFA_TARGET_MAKEFILES@ : Makefile $(srcdir)/libcfa/configure 896 896 @$(eval config_file = $(dir $@)config.data) 897 897 @ls $(config_file) || (echo "Missing config.data, re-run configure script again" && false) -
configure
ra5121bf r575a6e5 2488 2488 yes) AM_DEFAULT_VERBOSITY=0;; 2489 2489 no) AM_DEFAULT_VERBOSITY=1;; 2490 *) AM_DEFAULT_VERBOSITY= 1;;2490 *) AM_DEFAULT_VERBOSITY=0;; 2491 2491 esac 2492 2492 am_make=${MAKE-make} … … 2526 2526 2527 2527 2528 2529 # don't use the default CFLAGS as they unconditonnaly add -O2 2530 : ${CFLAGS=""} 2528 2531 2529 2532 am__api_version='1.15' -
configure.ac
ra5121bf r575a6e5 7 7 #AC_CONFIG_SRCDIR([src/main.cc]) 8 8 AC_CONFIG_HEADERS([config.h:src/config.h.in]) 9 AM_SILENT_RULES([ no])9 AM_SILENT_RULES([yes]) 10 10 11 11 m4_include([automake/cfa.m4]) 12 13 # don't use the default CFLAGS as they unconditonnaly add -O2 14 : ${CFLAGS=""} 12 15 13 16 AM_INIT_AUTOMAKE([subdir-objects]) -
libcfa/Makefile.in
ra5121bf r575a6e5 229 229 CFLAGS = @CFLAGS@ 230 230 CONFIGURATION = @CONFIGURATION@ 231 CONFIG_CFAFLAGS = @CONFIG_CFAFLAGS@ 232 CONFIG_CFLAGS = @CONFIG_CFLAGS@ 231 233 CPPFLAGS = @CPPFLAGS@ 232 234 CXX = @CXX@ -
libcfa/configure
ra5121bf r575a6e5 623 623 CFA_PREFIX 624 624 CFA_NAME 625 CONFIG_CFAFLAGS 626 CONFIG_CFLAGS 625 627 ARCH_FLAGS 626 628 CFACPP … … 629 631 CONFIGURATION 630 632 ARCHITECTURE 631 AM_BACKSLASH632 AM_DEFAULT_VERBOSITY633 AM_DEFAULT_V634 AM_V635 633 am__untar 636 634 am__tar … … 656 654 INSTALL_SCRIPT 657 655 INSTALL_PROGRAM 656 AM_BACKSLASH 657 AM_DEFAULT_VERBOSITY 658 AM_DEFAULT_V 659 AM_V 658 660 target_alias 659 661 host_alias … … 1910 1912 1911 1913 1914 # Check whether --enable-silent-rules was given. 1915 if test "${enable_silent_rules+set}" = set; then : 1916 enableval=$enable_silent_rules; 1917 fi 1918 1919 case $enable_silent_rules in # ((( 1920 yes) AM_DEFAULT_VERBOSITY=0;; 1921 no) AM_DEFAULT_VERBOSITY=1;; 1922 *) AM_DEFAULT_VERBOSITY=0;; 1923 esac 1924 am_make=${MAKE-make} 1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 1926 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 1927 if ${am_cv_make_support_nested_variables+:} false; then : 1928 $as_echo_n "(cached) " >&6 1929 else 1930 if $as_echo 'TRUE=$(BAR$(V)) 1931 BAR0=false 1932 BAR1=true 1933 V=1 1934 am__doit: 1935 @$(TRUE) 1936 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 1937 am_cv_make_support_nested_variables=yes 1938 else 1939 am_cv_make_support_nested_variables=no 1940 fi 1941 fi 1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 1943 $as_echo "$am_cv_make_support_nested_variables" >&6; } 1944 if test $am_cv_make_support_nested_variables = yes; then 1945 AM_V='$(V)' 1946 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1947 else 1948 AM_V=$AM_DEFAULT_VERBOSITY 1949 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1950 fi 1951 AM_BACKSLASH='\' 1952 1912 1953 1913 1954 … … 2343 2384 rmdir .tst 2>/dev/null 2344 2385 2345 # Check whether --enable-silent-rules was given.2346 if test "${enable_silent_rules+set}" = set; then :2347 enableval=$enable_silent_rules;2348 fi2349 2350 case $enable_silent_rules in # (((2351 yes) AM_DEFAULT_VERBOSITY=0;;2352 no) AM_DEFAULT_VERBOSITY=1;;2353 *) AM_DEFAULT_VERBOSITY=1;;2354 esac2355 am_make=${MAKE-make}2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&52357 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }2358 if ${am_cv_make_support_nested_variables+:} false; then :2359 $as_echo_n "(cached) " >&62360 else2361 if $as_echo 'TRUE=$(BAR$(V))2362 BAR0=false2363 BAR1=true2364 V=12365 am__doit:2366 @$(TRUE)2367 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then2368 am_cv_make_support_nested_variables=yes2369 else2370 am_cv_make_support_nested_variables=no2371 fi2372 fi2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&52374 $as_echo "$am_cv_make_support_nested_variables" >&6; }2375 if test $am_cv_make_support_nested_variables = yes; then2376 AM_V='$(V)'2377 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'2378 else2379 AM_V=$AM_DEFAULT_VERBOSITY2380 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY2381 fi2382 AM_BACKSLASH='\'2383 2384 2386 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2385 2387 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output … … 2498 2500 2499 2501 2502 # don't use the default CFLAGS as they unconditonnaly add -O2 2503 : ${CFLAGS=""} 2504 2500 2505 # Allow program name tansformation 2501 2506 # will fill program_transform_name with appropriate sed regex … … 2511 2516 2512 2517 2518 #============================================================================== 2519 #Handle specific flags 2513 2520 case $ARCHITECTURE in 2514 2521 "x64" ) ARCH_FLAGS="-m64";; … … 2516 2523 "arm" ) ARCH_FLAGS="";; 2517 2524 esac 2525 2526 2527 2528 case $CONFIGURATION in 2529 "debug" ) 2530 CONFIG_CFLAGS="-O0 -g" 2531 CONFIG_CFAFLAGS="-debug" 2532 ;; 2533 "nodebug" ) 2534 CONFIG_CFLAGS="-O2 -s" 2535 CONFIG_CFAFLAGS="-nodebug" 2536 ;; 2537 "nolib" ) 2538 CONFIG_CFLAGS="" 2539 CONFIG_CFAFLAGS="" 2540 ;; 2541 esac 2542 2518 2543 2519 2544 -
libcfa/configure.ac
ra5121bf r575a6e5 5 5 AC_INIT([cfa-cc],[1.0.0.0],[cforall@plg.uwaterloo.ca]) 6 6 AC_CONFIG_AUX_DIR([./automake]) 7 AM_SILENT_RULES([yes]) 7 8 8 9 m4_include([../automake/cfa.m4]) 9 10 10 11 AM_INIT_AUTOMAKE([subdir-objects]) 12 13 # don't use the default CFLAGS as they unconditonnaly add -O2 14 : ${CFLAGS=""} 11 15 12 16 # Allow program name tansformation … … 23 27 AC_SUBST(CFACPP) 24 28 29 #============================================================================== 30 #Handle specific flags 25 31 case $ARCHITECTURE in 26 32 "x64" ) ARCH_FLAGS="-m64";; … … 30 36 31 37 AC_SUBST(ARCH_FLAGS) 38 39 case $CONFIGURATION in 40 "debug" ) 41 CONFIG_CFLAGS="-O0 -g" 42 CONFIG_CFAFLAGS="-debug" 43 ;; 44 "nodebug" ) 45 CONFIG_CFLAGS="-O2 -s" 46 CONFIG_CFAFLAGS="-nodebug" 47 ;; 48 "nolib" ) 49 CONFIG_CFLAGS="" 50 CONFIG_CFAFLAGS="" 51 ;; 52 esac 53 54 AC_SUBST(CONFIG_CFLAGS) 55 AC_SUBST(CONFIG_CFAFLAGS) 32 56 33 57 #============================================================================== -
libcfa/prelude/Makefile.am
ra5121bf r575a6e5 24 24 25 25 CC = @CFACC@ 26 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ 26 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 27 AM_CFAFLAGS = @CONFIG_CFAFLAGS@ 27 28 28 29 $(DEPDIR) : -
libcfa/prelude/Makefile.in
ra5121bf r575a6e5 174 174 CFLAGS = @CFLAGS@ 175 175 CONFIGURATION = @CONFIGURATION@ 176 CONFIG_CFAFLAGS = @CONFIG_CFAFLAGS@ 177 CONFIG_CFLAGS = @CONFIG_CFLAGS@ 176 178 CPPFLAGS = @CPPFLAGS@ 177 179 CXX = @CXX@ … … 263 265 cfalib_DATA = gcc-builtins.cf builtins.cf extras.cf prelude.cf bootloader.c 264 266 noinst_DATA = ../src/prelude.c 265 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ 267 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 268 AM_CFAFLAGS = @CONFIG_CFAFLAGS@ 266 269 MOSTLYCLEANFILES = bootloader.c builtins.cf extras.cf gcc-builtins.c gcc-builtins.cf prelude.cf 267 270 MAINTAINERCLEANFILES = ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}} -
libcfa/src/Makefile.am
ra5121bf r575a6e5 28 28 # use -no-include-stdhdr to prevent rebuild cycles 29 29 # The built sources must not depend on the installed headers 30 AM_CFAFLAGS = -quiet -in-tree -imacros prelude.c -I$(srcdir)/stdhdr 31 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ 32 AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ 30 AM_CFAFLAGS = -quiet -in-tree -imacros prelude.c -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@ 31 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 32 AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 33 33 CFACC = @CFACC@ 34 34 -
libcfa/src/Makefile.in
ra5121bf r575a6e5 243 243 CFLAGS = @CFLAGS@ 244 244 CONFIGURATION = @CONFIGURATION@ 245 CONFIG_CFAFLAGS = @CONFIG_CFAFLAGS@ 246 CONFIG_CFLAGS = @CONFIG_CFLAGS@ 245 247 CPPFLAGS = @CPPFLAGS@ 246 248 CXX = @CXX@ … … 339 341 # use -no-include-stdhdr to prevent rebuild cycles 340 342 # The built sources must not depend on the installed headers 341 AM_CFAFLAGS = -quiet -in-tree -imacros prelude.c -I$(srcdir)/stdhdr 342 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ 343 AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ 343 AM_CFAFLAGS = -quiet -in-tree -imacros prelude.c -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@ 344 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 345 AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 344 346 345 347 #---------------------------------------------------------------------------------------------------------------- -
tests/Makefile.am
ra5121bf r575a6e5 33 33 -DIN_DIR="${srcdir}/.in/" 34 34 35 AM_CFLAGS += ${DEBUG_FLAGS} ${INSTALL_FLAGS} 35 AM_CFLAGS += ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS} 36 36 37 37 CC = @CFACC@ … … 59 59 60 60 .validate: .validate.c 61 @$(COMPILE) .validate.c -fsyntax-only61 $(COMPILE) .validate.c -fsyntax-only -Wall -Wextra -Werror 62 62 63 63 .validate.c: -
tests/Makefile.in
ra5121bf r575a6e5 304 304 AM_CFLAGS = $(if $(test), 2> $(test), ) -g -Wall -Wno-unused-function \ 305 305 -quiet @CFA_FLAGS@ -DIN_DIR="${srcdir}/.in/" ${DEBUG_FLAGS} \ 306 ${INSTALL_FLAGS} 306 ${INSTALL_FLAGS} ${ARCH_FLAGS} 307 307 fstream_test_SOURCES = fstream_test.c 308 308 avl_test_SOURCES = avltree/avl_test.c avltree/avl0.c avltree/avl1.c avltree/avl2.c avltree/avl3.c avltree/avl4.c avltree/avl-private.c … … 625 625 626 626 .validate: .validate.c 627 @$(COMPILE) .validate.c -fsyntax-only627 $(COMPILE) .validate.c -fsyntax-only -Wall -Wextra -Werror 628 628 629 629 .validate.c: -
tests/pybin/settings.py
ra5121bf r575a6e5 29 29 } 30 30 31 CrossCompileFlags = { 32 'x64' : 'ARCH_FLAGS=-m64', 33 'x86' : 'ARCH_FLAGS=-m32', 34 } 35 31 36 def __init__(self, arch): 37 try: 38 canonical_host = Architecture.makeCanonical( config.HOSTARCH ) 39 except KeyError: 40 print("Unkown host architecture %s" % config.HOSTARCH, file=sys.stderr) 41 sys.exit(1) 42 32 43 if arch: 44 try: 45 arch = Architecture.makeCanonical( arch ) 46 except KeyError: 47 print("Unkown architecture %s" % arch, file=sys.stderr) 48 sys.exit(1) 49 50 if arch and arch != canonical_host: 51 self.target = arch 33 52 self.cross_compile = True 34 try :35 self. target = Architecture.makeCanonical( arch )53 try : 54 self.flags = Architecture.CrossCompileFlags[arch] 36 55 except KeyError: 37 print(" Unkown architecture %s" % arch)56 print("Cross compilation not available for architecture %s" % arch, file=sys.stderr) 38 57 sys.exit(1) 58 39 59 else: 60 self.target = canonical_host 40 61 self.cross_compile = False 41 try: 42 arch = config.HOSTARCH 43 self.target = Architecture.makeCanonical( arch ) 44 except KeyError: 45 print("Running on unkown architecture %s" % arch) 46 sys.exit(1) 62 self.flags = "" 47 63 48 64 self.string = self.target … … 65 81 def __init__(self, value): 66 82 self.string = "debug" if value else "no debug" 67 self.flags = """DEBUG_FLAGS="%s" """ % ("-debug " if value else "-nodebug")83 self.flags = """DEBUG_FLAGS="%s" """ % ("-debug -O0" if value else "-nodebug -O2") 68 84 69 85 class Install: … … 98 114 with open (".validate.err", "r") as myfile: 99 115 error=myfile.read() 100 print( 'ERROR: Invalid configuration', file=sys.stderr)116 print("ERROR: Invalid configuration %s:%s" % (arch.string, debug.string), file=sys.stderr) 101 117 print(" verify returned : \n%s" % error, file=sys.stderr) 102 118 tools.rm("%s/.validate.err" % BUILDDIR) -
tests/pybin/tools.py
ra5121bf r575a6e5 101 101 '-s' if silent else '', 102 102 test_param, 103 settings.arch.flags, 103 104 settings.debug.flags, 104 105 settings.install.flags, -
tests/test.py
ra5121bf r575a6e5 98 98 parser.add_argument('tests', metavar='test', type=str, nargs='*', help='a list of tests to run') 99 99 100 options = parser.parse_args() 100 try: 101 options = parser.parse_args() 102 except: 103 print('ERROR: invalid arguments', file=sys.stderr) 104 parser.print_help(sys.stderr) 105 sys.exit(1) 101 106 102 107 # script must have at least some tests to run or be listing
Note: See TracChangeset
for help on using the changeset viewer.