- Timestamp:
- Dec 13, 2016, 3:15:11 PM (8 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, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 37efaf56
- Parents:
- 58dd019 (diff), 0edebf8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/driver/Makefile.am
r58dd019 r04c8bba 17 17 # applies to both programs 18 18 AM_CXXFLAGS = -Wall -O2 19 if BUILD_NO_LIB 20 else 21 AM_CXXFLAGS += -DHAVE_LIBCFA 22 endif 23 if BUILD_DEBUG 24 AM_CXXFLAGS += -DHAVE_LIBCFA_DEBUG 25 endif 26 if BUILD_RELEASE 27 AM_CXXFLAGS += -DHAVE_LIBCFA_RELEASE 28 endif 19 29 20 30 bin_PROGRAMS = cfa -
src/driver/Makefile.in
r58dd019 r04c8bba 38 38 build_triplet = @build@ 39 39 host_triplet = @host@ 40 @BUILD_NO_LIB_FALSE@am__append_1 = -DHAVE_LIBCFA 41 @BUILD_DEBUG_TRUE@am__append_2 = -DHAVE_LIBCFA_DEBUG 42 @BUILD_RELEASE_TRUE@am__append_3 = -DHAVE_LIBCFA_RELEASE 40 43 bin_PROGRAMS = cfa$(EXEEXT) 41 44 cc1lib_PROGRAMS = cc1$(EXEEXT) … … 204 207 205 208 # applies to both programs 206 AM_CXXFLAGS = -Wall -O2 209 AM_CXXFLAGS = -Wall -O2 $(am__append_1) $(am__append_2) \ 210 $(am__append_3) 207 211 cfa_SOURCES = cfa.cc 208 212 -
src/driver/cfa.cc
r58dd019 r04c8bba 231 231 } // if 232 232 233 string d;234 if ( debug ) {235 d = "-d";236 } // if237 238 233 // add the CFA include-library paths, which allow direct access to header files without directory qualification 239 240 234 args[nargs] = "-I" CFA_INCDIR; 241 235 nargs += 1; … … 249 243 nargs += 1; 250 244 245 #ifdef HAVE_LIBCFA 251 246 if ( link ) { 247 #if ! defined(HAVE_LIBCFA_RELEASE) 248 if( !debug ) { 249 cerr << "error: Option -nodebug is not available, libcfa was not installed." << endl; 250 exit( EXIT_FAILURE ); 251 } 252 #endif 253 #if ! defined(HAVE_LIBCFA_DEBUG) 254 if( debug ) { 255 cerr << "error: Option -debug is not available, libcfa-d was not installed." << endl; 256 exit( EXIT_FAILURE ); 257 } 258 #endif 259 252 260 // include the cfa library in case it's needed 253 261 args[nargs] = "-L" CFA_LIBDIR; 254 262 nargs += 1; 255 args[nargs] = "-lcfa"; 256 nargs += 1; 257 } // if 263 if( debug ) { 264 args[nargs] = "-lcfa-d"; 265 } else { 266 args[nargs] = "-lcfa"; 267 } 268 nargs += 1; 269 } // if 270 #endif //HAVE_LIBCFA 258 271 259 272 // add the correct set of flags based on the type of compile this is -
src/libcfa/Makefile.am
r58dd019 r04c8bba 18 18 AUTOMAKE_OPTIONS = subdir-objects 19 19 20 lib_LIBRARIES = libcfa.a 20 lib_LIBRARIES = 21 22 if BUILD_RELEASE 23 lib_LIBRARIES += libcfa.a 24 endif 25 26 if BUILD_DEBUG 27 lib_LIBRARIES += libcfa-d.a 28 endif 21 29 22 30 # put into lib for now … … 78 86 ${libobjs} : ${abs_top_srcdir}/src/driver/cfa-cpp ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator 79 87 80 libcfa_a_SOURCES = libcfa-prelude.c ${headers:=.c} concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c 88 libsrc = libcfa-prelude.c ${headers:=.c} concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c 89 90 libcfa_a_SOURCES = ${libsrc} 91 92 libcfa_d_a_SOURCES = ${libsrc} 81 93 82 94 stdhdr = ${shell echo stdhdr/*} -
src/libcfa/Makefile.in
r58dd019 r04c8bba 40 40 build_triplet = @build@ 41 41 host_triplet = @host@ 42 @BUILD_RELEASE_TRUE@am__append_1 = libcfa.a 43 @BUILD_DEBUG_TRUE@am__append_2 = libcfa-d.a 42 44 subdir = src/libcfa 43 45 DIST_COMMON = $(nobase_include_HEADERS) $(srcdir)/Makefile.am \ … … 89 91 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) 90 92 am__v_at_0 = @ 91 libcfa_ a_AR = $(AR) $(ARFLAGS)92 libcfa_ a_LIBADD =93 libcfa_d_a_AR = $(AR) $(ARFLAGS) 94 libcfa_d_a_LIBADD = 93 95 am__dirstamp = $(am__leading_dot)dirstamp 94 96 am__objects_1 = limits.$(OBJEXT) stdlib.$(OBJEXT) math.$(OBJEXT) \ … … 96 98 rational.$(OBJEXT) assert.$(OBJEXT) \ 97 99 containers/vector.$(OBJEXT) concurrency/threads.$(OBJEXT) 98 am_ libcfa_a_OBJECTS= libcfa-prelude.$(OBJEXT) $(am__objects_1) \100 am__objects_2 = libcfa-prelude.$(OBJEXT) $(am__objects_1) \ 99 101 concurrency/CtxSwitch-@MACHINE_TYPE@.$(OBJEXT) \ 100 102 concurrency/invoke.$(OBJEXT) 103 am_libcfa_d_a_OBJECTS = $(am__objects_2) 104 libcfa_d_a_OBJECTS = $(am_libcfa_d_a_OBJECTS) 105 libcfa_a_AR = $(AR) $(ARFLAGS) 106 libcfa_a_LIBADD = 107 am_libcfa_a_OBJECTS = $(am__objects_2) 101 108 libcfa_a_OBJECTS = $(am_libcfa_a_OBJECTS) 102 109 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) … … 122 129 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) 123 130 am__v_GEN_0 = @echo " GEN " $@; 124 SOURCES = $(libcfa_ a_SOURCES)125 DIST_SOURCES = $(libcfa_ a_SOURCES)131 SOURCES = $(libcfa_d_a_SOURCES) $(libcfa_a_SOURCES) 132 DIST_SOURCES = $(libcfa_d_a_SOURCES) $(libcfa_a_SOURCES) 126 133 DATA = $(cfalib_DATA) 127 134 HEADERS = $(nobase_include_HEADERS) … … 250 257 # create object files in directory with source files 251 258 AUTOMAKE_OPTIONS = subdir-objects 252 lib_LIBRARIES = libcfa.a259 lib_LIBRARIES = $(am__append_1) $(am__append_2) 253 260 254 261 # put into lib for now … … 268 275 runtimehdrs = concurrency 269 276 libobjs = ${headers:=.o} 270 libcfa_a_SOURCES = libcfa-prelude.c ${headers:=.c} concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c 277 libsrc = libcfa-prelude.c ${headers:=.c} concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c 278 libcfa_a_SOURCES = ${libsrc} 279 libcfa_d_a_SOURCES = ${libsrc} 271 280 stdhdr = ${shell echo stdhdr/*} 272 281 nobase_include_HEADERS = ${headers} ${stdhdr} concurrency/invoke.h … … 357 366 concurrency/invoke.$(OBJEXT): concurrency/$(am__dirstamp) \ 358 367 concurrency/$(DEPDIR)/$(am__dirstamp) 368 libcfa-d.a: $(libcfa_d_a_OBJECTS) $(libcfa_d_a_DEPENDENCIES) $(EXTRA_libcfa_d_a_DEPENDENCIES) 369 $(AM_V_at)-rm -f libcfa-d.a 370 $(AM_V_AR)$(libcfa_d_a_AR) libcfa-d.a $(libcfa_d_a_OBJECTS) $(libcfa_d_a_LIBADD) 371 $(AM_V_at)$(RANLIB) libcfa-d.a 359 372 libcfa.a: $(libcfa_a_OBJECTS) $(libcfa_a_DEPENDENCIES) $(EXTRA_libcfa_a_DEPENDENCIES) 360 373 $(AM_V_at)-rm -f libcfa.a
Note: See TracChangeset
for help on using the changeset viewer.