summaryrefslogtreecommitdiff
path: root/tests/modules/GNUmakefile
blob: 2c4aac98bfda17620156f43f4749e9997a22f174 (plain)
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
39
40
TOPDIR = ../..

SUBDIRS = libcommon testmod testmod2 testmod3 testmod4

INCLUDE_DIRS = \
	-I. -I$(TOPDIR)/src \
	-I$(TOPDIR)/include/module \
	-I$(TOPDIR)/include/util \
	-I$(TOPDIR)/tests/modules/libcommon

INCLUDE_LDFLAGS = \
	-L$(TOPDIR)/src/liblogger \
	-L$(TOPDIR)/tests/modules/libcommon

INCLUDE_LIBS = \
	$(TOPDIR)/src/libcrawler/libcrawler.a \
	-llogger -lcommon

TEST_CPP_BINS = \
	test1$(EXE) \
	test2$(EXE) \
	test3$(EXE) \
	test4$(EXE)

OBJS =

-include $(TOPDIR)/makefiles/gmake/sub.mk

local_all:

local_clean:
	-@rm -f *.RES *.DIFF

local_distclean:

local_test:
	@./exec_test test1 "Module loader"
	@./exec_test test2 "Module loader with singleton"
	@./exec_test test3 "Load module in module"
	@./exec_test test4 "Module initialization"