######################## -*- Mode: Makefile-Automake -*- ###################### ## ## Cforall Version 1.0.0 Copyright (C) 2020 University of Waterloo ## ## The contents of this file are covered under the licence agreement in the ## file "LICENCE" distributed with Cforall. ## ## Makefile.am -- ## ## Author : Thierry Delisle ## Created On : Mon Nov 30 14:01:00 2020 ## Last Modified By : ## Last Modified On : ## Update Count : ############################################################################### AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names ACLOCAL_AMFLAGS = -I automake # applies to both programs include $(top_srcdir)/tools/build/cfa.make AM_CFLAGS = -O3 -Wall -Wextra -I$(srcdir) -lrt -pthread -g # -Werror AM_CFAFLAGS = -quiet -nodebug AM_LDFLAGS = -quiet -nodebug CCLD = $(CFACC) EXTRA_PROGRAMS = httpforall .dummy_hack CLEANFILES = httpforall nodist_httpforall_SOURCES = \ filecache.cfa \ filecache.hfa \ main.cfa \ options.cfa \ options.hfa \ printer.cfa \ printer.hfa \ protocol.cfa \ protocol.hfa \ socket.cfa \ socket.hfa \ worker.cfa \ worker.hfa nodist__dummy_hack_SOURCES = .dummy_hack.c .dummy_hackxx.cpp # automake doesn't know we still need C rules so pretend like we have a C program .dummy_hack.c: @echo "int main() { return 0; }" > ${@} .dummy_hackxx.cpp: @echo "int bar() { return 0; }" > ${@} # add dependency of cfa files nodist_httpforall_OBJECTS = $(addsuffix .o, $(basename $(filter %.cfa,$(nodist_httpforall_SOURCES)))) $(nodist_httpforall_OBJECTS) : @CFACC@ @CFACPP@ # .deps inclusion is not done automatically by automake for new languages nodist_httpforall_DEPENDS = $(join \ $(addsuffix $(DEPDIR)/ , $(dir $(nodist_httpforall_OBJECTS) ) ), \ $(notdir ${nodist_httpforall_OBJECTS:.o=.Po}) \ ) -include $(nodist_httpforall_DEPENDS) list_libdeps: echo "objects: " $(nodist_httpforall_OBJECTS) echo "depends: " $(nodist_httpforall_DEPENDS)