Ignore:
Timestamp:
Aug 6, 2018, 2:50:03 PM (6 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, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
58b6d1b
Parents:
ff593a3
Message:

Replace extension-less headers with .hfa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/Makefile.am

    rff593a3 r73abe95  
    3333CFACC = @CFACC@
    3434
    35 headers = fstream iostream iterator limits rational time stdlib common \
    36           containers/maybe containers/pair containers/result containers/vector
     35#----------------------------------------------------------------------------------------------------------------
     36headers = fstream.hfa iostream.hfa iterator.hfa limits.hfa rational.hfa time.hfa stdlib.hfa common.hfa \
     37          containers/maybe.hfa containers/pair.hfa containers/result.hfa containers/vector.hfa
    3738
    3839# not all platforms support concurrency, add option do disable it
    39 headers += concurrency/coroutine concurrency/thread concurrency/kernel concurrency/monitor concurrency/mutex
     40headers += concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa
    4041
    41 libobjs = ${headers:=.o}
     42libobjs = ${headers:.hfa=.o}
    4243libsrc = prelude.c startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa \
    43         ${headers:=.cfa}
     44        ${headers:.hfa=.cfa}
    4445
    4546# not all platforms support concurrency, add option do disable it
    4647libsrc += concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa concurrency/invoke.c concurrency/preemption.cfa
    4748
    48 # extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing
    49 # SKULLDUGGERY in order to make sure this isn't called make the rule always fail but also create a rule for headers
    50 % : %.c
    51         echo "Dummy rule, should never be called"
    52         false
    53 
    54 # This rule should always match headers and since it has no prerequisite it will never be called
    55 $(addprefix $(srcdir)/,$(headers)):
    56         echo "Dummy rule, should never be called"
    57         false
    58 
    59 
    60 ${libobjs} : ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator
     49#----------------------------------------------------------------------------------------------------------------
     50# add dependency to cfa-cpp so all libraries are rebuilt with new translator
     51${libobjs} : ${cfalib_DATA}
    6152
    6253libcfa_a_SOURCES = ${libsrc}
     
    6556
    6657cfa_includedir = $(CFA_INCDIR)
    67 nobase_cfa_include_HEADERS =    \
    68         ${headers}              \
    69         ${stdhdr}               \
    70         math                    \
    71         gmp                     \
    72         time_t.h                \
    73         bits/align.h            \
    74         bits/containers.h       \
    75         bits/defs.h             \
    76         bits/debug.h            \
    77         bits/locks.h            \
    78         concurrency/invoke.h
     58nobase_cfa_include_HEADERS = \
     59        ${headers}             \
     60        ${stdhdr}              \
     61        math.hfa               \
     62        gmp.hfa                \
     63        time_t.hfa             \
     64        bits/align.hfa         \
     65        bits/containers.hfa    \
     66        bits/defs.hfa          \
     67        bits/debug.hfa         \
     68        bits/locks.hfa         \
     69        concurrency/invoke.hfa
    7970
    80 CLEANFILES = prelude.c
     71MOSTLYCLEANFILES = prelude.c
    8172
     73#----------------------------------------------------------------------------------------------------------------
    8274maintainer-clean-local:
    8375        -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR}
Note: See TracChangeset for help on using the changeset viewer.