Makefile.am 1.82 KB
Newer Older
jds2's avatar
jds2 committed
1
## Process this file with automake to produce Makefile.in
2

jds2's avatar
jds2 committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
BASIC_OBJECTS_SHARED = Basic/Basic.lo
AUTOMATED_OBJECTS_SHARED = Automated/Automated.lo
CONSOLE_OBJECTS_SHARED = Console/Console.lo
CURSES_OBJECTS_SHARED = Curses/Curses.lo
FRAMEWORK_OBJECTS_SHARED = \
	Framework/CUError.lo \
	Framework/MyMem.lo \
	Framework/TestDB.lo \
	Framework/TestRun.lo \
	Framework/Util.lo

FRAMEWORK_OBJECT_FILES_SHARED = $(FRAMEWORK_OBJECTS_SHARED)
FRAMEWORK_COMPILE_DIRS = Framework

if ENABLE_AUTOMATED
AUTOMATED_OBJECT_FILES_SHARED = $(AUTOMATED_OBJECTS_SHARED)
AUTOMATED_COMPILE_DIRS = Automated
endif
21 22

if ENABLE_BASIC
jds2's avatar
jds2 committed
23
BASIC_OBJECT_FILES_SHARED = $(BASIC_OBJECTS_SHARED)
24
BASIC_COMPILE_DIRS = Basic
25 26 27
endif

if ENABLE_CONSOLE
jds2's avatar
jds2 committed
28
CONSOLE_OBJECT_FILES_SHARED = $(CONSOLE_OBJECTS_SHARED)
29
CONSOLE_COMPILE_DIRS = Console
30 31 32
endif

if ENABLE_CURSES
jds2's avatar
jds2 committed
33
CURSES_OBJECT_FILES_SHARED = $(CURSES_OBJECTS_SHARED)
34
CURSES_COMPILE_DIRS = Curses
35 36
endif

37
if ENABLE_TEST
38
TEST_OBJECT_FILES = \
39 40 41 42 43
	Framework/CUError_test.o \
	Framework/MyMem_test.o \
	Framework/TestDB_test.o \
	Framework/TestRun_test.o \
	Framework/Util_test.o
44
TEST_COMPILE_DIRS = Test
45
endif
46

jds2's avatar
jds2 committed
47 48 49 50 51 52 53 54 55 56 57 58 59 60
COMPILE_DIRS = \
	$(FRAMEWORK_COMPILE_DIRS) \
	$(AUTOMATED_COMPILE_DIRS) \
	$(BASIC_COMPILE_DIRS) \
	$(CONSOLE_COMPILE_DIRS) \
	$(CURSES_COMPILE_DIRS) \
	. \
	$(TEST_COMPILE_DIRS)
OBJECT_FILES_SHARED = \
	$(FRAMEWORK_OBJECT_FILES_SHARED) \
	$(AUTOMATED_OBJECT_FILES_SHARED) \
	$(BASIC_OBJECT_FILES_SHARED) \
	$(CONSOLE_OBJECT_FILES_SHARED) \
	$(CURSES_OBJECT_FILES_SHARED)
61 62
TEST_OBJECTS = $(TEST_OBJECT_FILES)

63 64

SUBDIRS = $(COMPILE_DIRS)
anilsaharan's avatar
anilsaharan committed
65

jds2's avatar
jds2 committed
66

67 68
lib_LTLIBRARIES = libcunit.la
libcunit_la_SOURCES = 
jds2's avatar
jds2 committed
69 70
libcunit_la_LIBADD = $(OBJECT_FILES_SHARED)
libcunit_la_LDFLAGS = -version-info @LIBTOOL_CURRENT@:@LIBTOOL_REVISION@:@LIBTOOL_AGE@
71

72

jds2's avatar
jds2 committed
73 74
if ENABLE_TEST
noinst_LIBRARIES = libcunit_test.a
75 76
libcunit_test_a_SOURCES =
libcunit_test_a_LIBADD = $(TEST_OBJECTS)
jds2's avatar
jds2 committed
77
endif