Changeset ba9baad for libcfa/src/Makefile.am
- Timestamp:
- Aug 3, 2018, 2:50:12 PM (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:
- 534e4e4
- Parents:
- ff1e0f38
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/Makefile.am
rff1e0f38 rba9baad 19 19 ARFLAGS = cr 20 20 21 include $(srcdir)/../../src/cfa.make 22 21 23 libdir = ${CFA_LIBDIR} 22 24 lib_LIBRARIES = libcfa.a 23 25 24 libcfa-prelude.o : libcfa-prelude.c 25 ${AM_V_GEN}gcc -Wall -O2 -c -o $@ $< 26 27 EXTRA_FLAGS = -g -Wall -Wno-unused-function -imacros libcfa-prelude.c $(DEFAULT_INCLUDES) 28 29 AM_CCASFLAGS = 30 31 #CFLAGS for most libcfa src 32 #use -no-include-stdhdr to prevent rebuild cycles 33 #The built sources must not depend on the installed headers 34 CFLAGS = -quiet -no-include-stdhdr -XCFA -t -B@DRIVER_DIR@ ${EXTRA_FLAGS} 35 CC = @CFACC@ 26 # AM_CFLAGS for all cfa source 27 # AM_CFAFLAGS for only cfa source 28 # use -no-include-stdhdr to prevent rebuild cycles 29 # The built sources must not depend on the installed headers 30 AM_CFAFLAGS = -quiet -no-include-stdhdr -XCFA -t -B@DRIVER_DIR@ -imacros prelude.c -I$(srcdir)/stdhdr 31 AM_CFLAGS = -g -Wall -Wno-unused-function 32 CFACC = @CFACC@ 36 33 37 34 headers = fstream iostream iterator limits rational time stdlib common \ … … 42 39 43 40 libobjs = ${headers:=.o} 44 libsrc = libcfa-prelude.c startup.c interpose.c bits/debug.c assert.c exception.c virtual.c heap.c\45 ${headers:=.c }41 libsrc = prelude.c startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa \ 42 ${headers:=.cfa} 46 43 47 44 # not all platforms support concurrency, add option do disable it 48 libsrc += concurrency/CtxSwitch-@ MACHINE_TYPE@.S concurrency/alarm.c concurrency/invoke.c concurrency/preemption.c45 libsrc += concurrency/CtxSwitch-@host_alias@.S concurrency/alarm.cfa concurrency/invoke.c concurrency/preemption.cfa 49 46 50 47 # extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing … … 59 56 false 60 57 61 concurrency/invoke.o : concurrency/invoke.c62 ${AM_V_CC}gcc -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<63 58 64 exception.o : exception.c 65 ${AM_V_CC}gcc -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $< 66 67 virtual.o : virtual.c 68 ${AM_V_CC}gcc -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $< 69 70 ${libobjs} : @CFACPP@ ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator 59 ${libobjs} : ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator 71 60 72 61 libcfa_a_SOURCES = ${libsrc} 73 libcfa_a_CFLAGS = -nodebug -O274 62 75 63 stdhdr = ${shell find ${srcdir}/stdhdr -type f -printf "%p "} … … 89 77 concurrency/invoke.h 90 78 91 CLEANFILES = libcfa-prelude.c79 CLEANFILES = prelude.c 92 80 93 81 maintainer-clean-local:
Note: See TracChangeset
for help on using the changeset viewer.