lib.mk 1010 Bytes
Newer Older
1 2 3 4
ccan_EMBED := \
	contrib/ccan/ilog/ilog.c \
	contrib/ccan/isaac/isaac.c

Marek Vavruša's avatar
Marek Vavruša committed
5
libkresolve_SOURCES := \
6
	$(ccan_EMBED)          \
7
	lib/generic/map.c      \
Marek Vavruša's avatar
Marek Vavruša committed
8 9
	lib/layer/iterate.c    \
	lib/layer/itercache.c  \
10
	lib/layer/pktcache.c   \
11
	lib/utils.c            \
12
	lib/nsrep.c            \
13
	lib/module.c           \
Marek Vavruša's avatar
Marek Vavruša committed
14 15 16 17 18 19
	lib/resolve.c          \
	lib/zonecut.c          \
	lib/rplan.c            \
	lib/cache.c

libkresolve_HEADERS := \
20
	lib/generic/array.h    \
21 22
	lib/generic/map.h      \
	lib/generic/set.h      \
Marek Vavruša's avatar
Marek Vavruša committed
23
	lib/layer.h            \
24
	lib/utils.h            \
25
	lib/nsrep.h            \
26
	lib/module.h           \
Marek Vavruša's avatar
Marek Vavruša committed
27 28 29 30 31 32
	lib/resolve.h          \
	lib/zonecut.h          \
	lib/rplan.h            \
	lib/cache.h

# Dependencies
33
libkresolve_DEPEND := 
Marek Vavruša's avatar
Marek Vavruša committed
34 35 36 37
libkresolve_LIBS := $(libknot_LIBS)
libkresolve_TARGET := -Wl,-rpath,lib -Llib -lkresolve

# Make library
38 39 40
$(eval $(call make_lib,libkresolve,lib))

# Targets
41
lib: $(libkresolve)
42 43
lib-install: libkresolve-install
lib-clean: libkresolve-clean
44 45

.PHONY: lib lib-install lib-clean