source: benchmark/io/http/Makefile.am @ ce98816

ADTast-experimentalpthread-emulationqualifiedEnum
Last change on this file since ce98816 was c4b10e2, checked in by Thierry Delisle <tdelisle@…>, 2 years ago

Moved socket creation to a different file.
Makefile now has debug symbol.
Pipes are now closed earlier for a cleaner exit.

  • Property mode set to 100644
File size: 1.9 KB
Line 
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
17AUTOMAKE_OPTIONS = foreign    # do not require all the GNU file names
18ACLOCAL_AMFLAGS  = -I automake
19
20# applies to both programs
21include $(top_srcdir)/tools/build/cfa.make
22
23AM_CFLAGS = -O3 -Wall -Wextra -I$(srcdir) -lrt -pthread -g # -Werror
24AM_CFAFLAGS = -quiet -nodebug
25AM_LDFLAGS = -quiet -nodebug
26
27CCLD = $(CFACC)
28
29EXTRA_PROGRAMS = httpforall .dummy_hack
30
31CLEANFILES = httpforall
32
33nodist_httpforall_SOURCES = \
34        filecache.cfa \
35        filecache.hfa \
36        main.cfa \
37        options.cfa \
38        options.hfa \
39        protocol.cfa \
40        protocol.hfa \
41        socket.cfa \
42        socket.hfa \
43        worker.cfa \
44        worker.hfa
45
46nodist__dummy_hack_SOURCES = .dummy_hack.c .dummy_hackxx.cpp
47
48# automake doesn't know we still need C rules so pretend like we have a C program
49.dummy_hack.c:
50        @echo "int main() { return 0; }" > ${@}
51
52.dummy_hackxx.cpp:
53        @echo "int bar() { return 0; }" > ${@}
54
55# add dependency of cfa files
56nodist_httpforall_OBJECTS = $(addsuffix .o, $(basename $(filter %.cfa,$(nodist_httpforall_SOURCES))))
57$(nodist_httpforall_OBJECTS) : @CFACC@ @CFACPP@
58
59# .deps inclusion is not done automatically by automake for new languages
60nodist_httpforall_DEPENDS = $(join \
61        $(addsuffix $(DEPDIR)/ , $(dir $(nodist_httpforall_OBJECTS) ) ), \
62        $(notdir ${nodist_httpforall_OBJECTS:.o=.Po}) \
63)
64
65-include $(nodist_httpforall_DEPENDS)
66
67list_libdeps:
68        echo "objects: " $(nodist_httpforall_OBJECTS)
69        echo "depends: " $(nodist_httpforall_DEPENDS)
Note: See TracBrowser for help on using the repository browser.