Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/Makefile.am

    r7fb69f6 ra4248de1  
    3030# applies to both programs
    3131AM_CFLAGS = $(if $(test), 2> $(test), ) \
     32        -XCFA \
     33        -t \
     34        -B${abs_top_builddir}/src/driver \
    3235        -g \
    3336        -Wall \
    3437        -Wno-unused-function \
    3538        -quiet @CFA_FLAGS@ \
     39        -I. \
    3640        -DIN_DIR="${srcdir}/.in/" \
    37         @BUILD_IN_TREE_FLAGS@
     41        -L${abs_top_builddir}/src/libcfa \
     42        -I${abs_top_srcdir}/src/libcfa \
     43        -I${abs_top_srcdir}/src/libcfa/containers \
     44        -I${abs_top_srcdir}/src/libcfa/concurrency \
     45        -I${abs_top_srcdir}/src/libcfa/stdhdr
    3846
    3947if !BUILD_DEBUG
     
    4755endif
    4856
    49 CC = @CFACC@
     57CC = ${abs_top_builddir}/src/driver/cfa
    5058
    5159.PHONY : list
     
    7179        @+${TEST_PY} --debug=${debug} -Iconcurrent
    7280
     81# SKULLDUGGERY like libcfa/Makefile.am prevent extensionless headers from being generated
     82# however, here it is more complicated because it must match the dependencies based on how
     83# they are generated by gcc
     84headers = $(shell find $(top_srcdir)/src/libcfa -type f ! -name "*.*")
     85headers_real = $(shell realpath --relative-to=$(top_srcdir)/src/libcfa $(headers))
     86headers_deps = $(addprefix %/, $(headers_real))
     87$(headers_deps) :
     88        echo "Dummy rule, should never be called"
     89
     90# %/stdlib:
     91#       echo "Dummy rule, should never be called"
     92
     93# implicit rule so not all test require a rule
    7394% : %.c $(CC)
    74         echo "Compiling"
    75         $(COMPILE) ${<} -o ${@}
    76 
    77 /home/tdelisle/workspace/clean-cforall/main/build/../src/libcfa/stdlib:
    78         echo "Caught"
    79 
     95        echo $(headers_deps)
     96        $(COMPILE) $(abspath ${<}) -o ${@}
    8097
    8198declarationSpecifier: declarationSpecifier.c $(CC)
Note: See TracChangeset for help on using the changeset viewer.