Changes in src/libcfa/Makefile.am [c5a8c5b:6d665d9]
- File:
-
- 1 edited
-
src/libcfa/Makefile.am (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/Makefile.am
rc5a8c5b r6d665d9 11 11 ## Created On : Sun May 31 08:54:01 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Wed Dec 14 15:17:30201614 ## Update Count : 21113 ## Last Modified On : Fri Aug 26 12:03:37 2016 14 ## Update Count : 199 15 15 ############################################################################### 16 16 … … 18 18 AUTOMAKE_OPTIONS = subdir-objects 19 19 20 lib_LIBRARIES = 20 lib_LIBRARIES = libcfa.a 21 21 22 if BUILD_RELEASE 23 lib_LIBRARIES += libcfa.a 24 endif22 # put into lib for now 23 cfalibdir = ${libdir} 24 cfalib_DATA = builtins.cf extras.cf prelude.cf 25 25 26 if BUILD_DEBUG 27 lib_LIBRARIES += libcfa-d.a 28 endif26 # create extra forward types/declarations to reduce inclusion of library files 27 extras.cf : extras.regx extras.c 28 ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -E ${srcdir}/extras.c | grep -f extras.regx > ${srcdir}/extras.cf 29 29 30 libcfa_a-libcfa-prelude.o : libcfa-prelude.c 31 ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -O2 -c -o $@ $< 30 # create forward declarations for gcc builtins 31 builtins.cf : builtins.c 32 ${AM_V_GEN}if [ -e $< ] ; then \ 33 @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@ ; \ 34 fi 32 35 33 libcfa_d_a-libcfa-prelude.o : libcfa-prelude.c 34 ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -D__CFA_DEBUG__ -O0 -c -o $@ $< 36 builtins.c : builtins.def prototypes.awk 37 ${AM_V_GEN}if [ -e $< ] ; then \ 38 @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ ; \ 39 fi 35 40 36 EXTRA_FLAGS = -g -Wall -Wno-unused-function -I${abs_top_srcdir}/src/libcfa/libhdr -imacros libcfa-prelude.c @CFA_FLAGS@ 41 builtins.def : 37 42 38 AM_CCASFLAGS = @CFA_FLAGS@ 39 CFLAGS = -quiet -no-include-stdhdr -XCFA -t -B${abs_top_srcdir}/src/driver ${EXTRA_FLAGS} 43 prototypes.awk : 44 45 MAINTAINERCLEANFILES = builtins.cf extras.cf ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}} 46 47 #-------------------------------------------------- 48 49 libcfa-prelude.c : ${srcdir}/prelude.cf ${srcdir}/extras.cf ${srcdir}/builtins.cf 50 ${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 51 52 libcfa-prelude.o : libcfa-prelude.c 53 ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -c -o $@ $< 54 55 CFLAGS = -quiet -no-include-stdhdr -g -Wall -Wno-unused-function @CFA_FLAGS@ -B${abs_top_srcdir}/src/driver -XCFA -t # TEMPORARY: does not build with -O2 40 56 CC = ${abs_top_srcdir}/src/driver/cfa 41 57 42 headers = limits stdlib math iostream fstream iterator rational assert containers/vector concurrency/threads 43 runtimehdrs = concurrency 58 headers = limits stdlib math iostream fstream iterator rational containers/vector 44 59 libobjs = ${headers:=.o} 45 60 … … 48 63 @true 49 64 50 concurrency/libcfa_a-invoke.o : concurrency/invoke.c51 ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -O2 ${EXTRA_FLAGS} -c -o $@ $<52 53 concurrency/libcfa_d_a-invoke.o : concurrency/invoke.c54 ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<55 56 65 ${libobjs} : ${abs_top_srcdir}/src/driver/cfa-cpp ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator 57 66 58 libsrc = libcfa-prelude.c ${headers:=.c} concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c 59 60 libcfa_a_SOURCES = ${libsrc} 61 libcfa_a_CFLAGS = -nodebug -O2 62 libcfa_d_a_SOURCES = ${libsrc} 63 libcfa_d_a_CFLAGS = -debug -O0 67 libcfa_a_SOURCES = libcfa-prelude.c ${headers:=.c} 64 68 65 69 stdhdr = ${shell echo stdhdr/*} 66 70 67 nobase_include_HEADERS = ${headers} ${stdhdr} concurrency/invoke.h71 nobase_include_HEADERS = ${headers} ${stdhdr} 68 72 69 73 CLEANFILES = libcfa-prelude.c
Note:
See TracChangeset
for help on using the changeset viewer.