summaryrefslogtreecommitdiff
path: root/src/common/Makefile.am
blob: 7925b6611ce0ed4d9734330b33734dedcdb39919 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88

noinst_LTLIBRARIES = libcommon4.la # libcommon.la

libcommon_la_SOURCES =					\
	alloc.h alloc.c						\
	array.h array.c						\
	asm.h asm.c							\
	bconst.h							\
	compression.h compression.c			\
	cpp.h								\
	cpu.h cpu.c							\
	environment.h environment.c			\
	extstr.h extstr.c					\
	hex.h hex.c							\
	ibuf.h ibuf.c						\
	io.h io.c							\
	itoa.h itoa.c						\
	leb128.h leb128.c					\
	net.h net.c							\
	packed.h packed.c					\
	pathname.h pathname.c				\
	pearson.h pearson.c					\
	sort.h sort.c						\
	sqlite.h sqlite.c					\
	szstr.h								\
	utf8.h utf8.c						\
	xdg.h xdg.c							\
	xml.h xml.c

if BUILD_CURL_SUPPORT

libcommon_la_SOURCES +=					\
	curl.h curl.c

endif

cpu.lo: CFLAGS += -mavx512f

libcommon_la_CFLAGS = $(TOOLKIT_CFLAGS) $(LIBXML_CFLAGS)

if BUILD_CURL_SUPPORT

libcommon_la_CFLAGS += $(LIBCURL_CFLAGS)

endif



libcommon4_la_SOURCES =						\
	asm.h asm.c								\
	bits.h bits.c							\
	compiler.h								\
	datatypes.h								\
	dllist.h dllist.c						\
	entropy.h entropy.c						\
	environment.h environment.c				\
	extstr.h extstr.c						\
	fnv1a.h fnv1a.c							\
	io.h io.c								\
	json.h json.c							\
	leb128.h leb128.c						\
	macros.h								\
	packed.h packed.c						\
	pathname.h pathname.c					\
	shuffle.h shuffle.c						\
	sort.h sort.c							\
	szbin.h									\
	xdg.h xdg.c

if BUILD_CURL_SUPPORT

libcommon4_la_SOURCES +=					\
	curl.h curl.c

endif

libcommon4_la_CFLAGS = $(TOOLKIT_CFLAGS) $(LIBSSL_CFLAGS) $(LIBJSONGLIB_CFLAGS)

if BUILD_CURL_SUPPORT

libcommon4_la_CFLAGS += $(LIBCURL_CFLAGS)

endif


devdir = $(includedir)/chrysalide/$(subdir:src/%=core/%)

dev_HEADERS = $(libcommon_la_SOURCES:%c=)