File: Makefile.am

package info (click to toggle)
anymeal 1.34-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,284 kB
  • sloc: cpp: 22,596; sh: 4,503; lex: 482; makefile: 152; xml: 28
file content (38 lines) | stat: -rw-r--r-- 1,056 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
SUFFIXES = .cc .hh

SUBDIRS = fixtures

if ENABLE_TESTS
if GOOGLE_TEST_SRC
BUILT_SOURCES = gtest-all.cc
endif
check_PROGRAMS = suite
suite_LDFLAGS =
if GOOGLE_TEST_SRC
suite_SOURCES = suite.cc gtest-all.cc test_partition.cc test_recipe.cc test_ingredient.cc test_mealmaster.cc \
								test_recode.cc test_database.cc test_html.cc test_export.cc
suite_CXXFLAGS = -I$(top_srcdir)/anymeal $(SQLITE3_CFLAGS) -I$(GTESTSRC)/include -I$(GTESTSRC)
suite_LDADD = ../anymeal/libanymeal.a $(SQLITE3_LDFLAGS) -lpthread
else
suite_SOURCES = suite.cc test_partition.cc test_recipe.cc test_ingredient.cc test_mealmaster.cc \
								test_recode.cc test_database.cc test_html.cc test_export.cc
suite_CXXFLAGS = -I$(top_srcdir)/anymeal $(SQLITE3_CFLAGS) $(GTEST_CFLAGS)
suite_LDADD = ../anymeal/libanymeal.a $(GTEST_LIBS) $(SQLITE3_LDFLAGS) -lpthread
endif
else
BUILT_SOURCES =
check_PROGRAMS =
endif

CLEANFILES = $(BUILT_SOURCES)

if GOOGLE_TEST_SRC
gtest-all.cc: $(GTESTSRC)/src/gtest-all.cc
	rm -f $@
	$(LN_S) $< $@
endif

if ENABLE_TESTS
check-local:
	./suite
endif