Ignore:
Timestamp:
Dec 13, 2016, 3:59:01 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
375a068, 6a1bdfd
Parents:
04c8bba
Message:

Now compiling libcfa.a and libcfa-d.a with proper flags, both lib now actually differ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/Makefile.am

    r04c8bba r37efaf56  
    5858        ${AM_V_GEN}${abs_top_srcdir}/src/driver/cfa-cpp -l ${srcdir}/prelude.cf $@  # use src/cfa-cpp as not in lib until after install
    5959
    60 libcfa-prelude.o : libcfa-prelude.c
    61          ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -c -o $@ $<
     60libcfa_a-libcfa-prelude.o : libcfa-prelude.c
     61         ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -O2 -c -o $@ $<
    6262
    63 EXTRA_FLAGS = \
    64         -g \
    65         -Wall \
    66         -Wno-unused-function \
    67         @CFA_FLAGS@ \
    68         -I${abs_top_srcdir}/src/libcfa/libhdr \
    69         # TEMPORARY: does not build with -O2
     63libcfa_d_a-libcfa-prelude.o : libcfa-prelude.c
     64         ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -D__CFA_DEBUG__ -O0 -c -o $@ $<
     65
     66EXTRA_FLAGS = -g -Wall -Wno-unused-function -I${abs_top_srcdir}/src/libcfa/libhdr       @CFA_FLAGS@
    7067
    7168AM_CCASFLAGS = @CFA_FLAGS@
    72 CFLAGS = ${EXTRA_FLAGS} -quiet -no-include-stdhdr -XCFA -t -B${abs_top_srcdir}/src/driver
     69CFLAGS = -quiet -no-include-stdhdr -XCFA -t -B${abs_top_srcdir}/src/driver ${EXTRA_FLAGS}
    7370CC = ${abs_top_srcdir}/src/driver/cfa
    7471
     
    8178        @true
    8279
    83 concurrency/invoke.o : concurrency/invoke.c
    84         $(AM_V_CC) @BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. ${EXTRA_FLAGS} -c -o $@ $<
     80concurrency/libcfa_a-invoke.o : concurrency/invoke.c
     81        ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -O2 ${EXTRA_FLAGS} -c -o $@ $<
     82
     83concurrency/libcfa_d_a-invoke.o : concurrency/invoke.c
     84        ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
    8585
    8686${libobjs} : ${abs_top_srcdir}/src/driver/cfa-cpp ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator
     
    8989
    9090libcfa_a_SOURCES = ${libsrc}
    91 
     91libcfa_a_CFLAGS = -nodebug -O2
    9292libcfa_d_a_SOURCES = ${libsrc}
     93libcfa_d_a_CFLAGS = -debug -O0
    9394
    9495stdhdr = ${shell echo stdhdr/*}
Note: See TracChangeset for help on using the changeset viewer.