Ignore:
Timestamp:
May 31, 2016, 1:36:04 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
76c5d6e
Parents:
a6b7480
Message:

properly deal with extensionless headers in Makfile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/Makefile.in

    ra6b7480 r7f8b740  
    214214MAINTAINERCLEANFILES = ${addprefix ${libdir}/,${cfalib_DATA}} \
    215215        ${addprefix ${libdir}/,${lib_LIBRARIES}} ${includedir}/*
    216 libs = limits stdlib math iostream fstream iterator rational
    217 libcfa_a_SOURCES = libcfa-prelude.c ${libs:=.c}
    218 cheaders = # expat
    219 cfaheaders = # limits
    220 include_HEADERS = ${cheaders:=.h} ${libs} ${cfaheaders}
     216headers = limits stdlib math iostream fstream iterator rational
     217libcfa_a_SOURCES = libcfa-prelude.c ${headers:=.c}
     218include_HEADERS = ${headers}
    221219CLEANFILES = libcfa-prelude.c
    222220all: all-am
     
    303301@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rational.Po@am__quote@
    304302@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stdlib.Po@am__quote@
     303
     304.c.o:
     305@am__fastdepCC_TRUE@    $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
     306@am__fastdepCC_TRUE@    $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
     307@AMDEP_TRUE@@am__fastdepCC_FALSE@       source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
     308@AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     309@am__fastdepCC_FALSE@   $(COMPILE) -c $<
    305310
    306311.c.obj:
     
    582587libcfa-prelude.o : libcfa-prelude.c
    583588        @BACKEND_CC@ -c -o $@ $<
    584 
    585 # extension-less header files are overridden by default make rules => explicitly override rule
    586 % : %.c
    587         true
    588 
    589 .c.o : ${abs_top_srcdir}/src/driver/cfa-cpp
    590         ${CC} ${CFLAGS} -c -o $@ $<
     589.SECONDARY : ${headers}                                 # stop implicit '.o' rules from removing extensionless headers
    591590
    592591# Tell versions [3.59,3.63) of GNU make to not export all variables.
Note: See TracChangeset for help on using the changeset viewer.