1 | ######################## -*- Mode: Makefile-Automake -*- ######################
|
---|
2 | ##
|
---|
3 | ## Cforall Version 1.0.0 Copyright (C) 2020 University of Waterloo
|
---|
4 | ##
|
---|
5 | ## The contents of this file are covered under the licence agreement in the
|
---|
6 | ## file "LICENCE" distributed with Cforall.
|
---|
7 | ##
|
---|
8 | ## Makefile.am --
|
---|
9 | ##
|
---|
10 | ## Author : Thierry Delisle
|
---|
11 | ## Created On : Mon Nov 30 14:01:00 2020
|
---|
12 | ## Last Modified By :
|
---|
13 | ## Last Modified On :
|
---|
14 | ## Update Count :
|
---|
15 | ###############################################################################
|
---|
16 |
|
---|
17 | AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names
|
---|
18 | ACLOCAL_AMFLAGS = -I automake
|
---|
19 |
|
---|
20 | # applies to both programs
|
---|
21 | include $(top_srcdir)/tools/build/cfa.make
|
---|
22 |
|
---|
23 | AM_CFLAGS = -O3 -Wall -Wextra -I$(srcdir) -lrt -pthread -g # -Werror
|
---|
24 | AM_CFAFLAGS = -quiet -nodebug
|
---|
25 | AM_LDFLAGS = -quiet -nodebug
|
---|
26 |
|
---|
27 | CCLD = $(CFACC)
|
---|
28 |
|
---|
29 | EXTRA_PROGRAMS = httpforall .dummy_hack
|
---|
30 |
|
---|
31 | CLEANFILES = httpforall
|
---|
32 |
|
---|
33 | nodist_httpforall_SOURCES = \
|
---|
34 | filecache.cfa \
|
---|
35 | filecache.hfa \
|
---|
36 | main.cfa \
|
---|
37 | options.cfa \
|
---|
38 | options.hfa \
|
---|
39 | printer.cfa \
|
---|
40 | printer.hfa \
|
---|
41 | protocol.cfa \
|
---|
42 | protocol.hfa \
|
---|
43 | socket.cfa \
|
---|
44 | socket.hfa \
|
---|
45 | worker.cfa \
|
---|
46 | worker.hfa
|
---|
47 |
|
---|
48 | nodist__dummy_hack_SOURCES = .dummy_hack.c .dummy_hackxx.cpp
|
---|
49 |
|
---|
50 | # automake doesn't know we still need C rules so pretend like we have a C program
|
---|
51 | .dummy_hack.c:
|
---|
52 | @echo "int main() { return 0; }" > ${@}
|
---|
53 |
|
---|
54 | .dummy_hackxx.cpp:
|
---|
55 | @echo "int bar() { return 0; }" > ${@}
|
---|
56 |
|
---|
57 | # add dependency of cfa files
|
---|
58 | nodist_httpforall_OBJECTS = $(addsuffix .o, $(basename $(filter %.cfa,$(nodist_httpforall_SOURCES))))
|
---|
59 | $(nodist_httpforall_OBJECTS) : @CFACC@ @CFACPP@
|
---|
60 |
|
---|
61 | # .deps inclusion is not done automatically by automake for new languages
|
---|
62 | nodist_httpforall_DEPENDS = $(join \
|
---|
63 | $(addsuffix $(DEPDIR)/ , $(dir $(nodist_httpforall_OBJECTS) ) ), \
|
---|
64 | $(notdir ${nodist_httpforall_OBJECTS:.o=.Po}) \
|
---|
65 | )
|
---|
66 |
|
---|
67 | -include $(nodist_httpforall_DEPENDS)
|
---|
68 |
|
---|
69 | list_libdeps:
|
---|
70 | echo "objects: " $(nodist_httpforall_OBJECTS)
|
---|
71 | echo "depends: " $(nodist_httpforall_DEPENDS)
|
---|