forked from freebsd/pkg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
93 lines (82 loc) · 2.15 KB
/
Makefile.am
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
89
90
91
92
93
AUTOMAKE_OPTIONS= subdir-objects
GENERIC_LDADD= $(top_builddir)/libpkg/libpkg_static.la \
$(top_builddir)/external/libsbuf_static.la \
@LIBJAIL_LIB@ \
@LIBEXECINFO_LIB@ \
-lelf \
-lfetch \
-larchive \
-lutil \
-lm \
-lssl \
-lcrypto \
-L/usr/local/lib \
-latf-c
if LIBELF_BUNDLED
GENERIC_LDADD+= $(top_builddir)/external/libelf/libelf_static.la
else
GENERIC_LDADD+= -lelf
endif
PUBLIC_INCS= -I$(top_srcdir)/libpkg -DTESTING \
-I/usr/local/include
PRIVATE_INCS= $(PUBLIC_INCS) \
-I$(top_srcdir)/external/sqlite \
-I$(top_srcdir)/external/uthash \
-I$(top_srcdir)/external/libucl/include
pkg_printf_SOURCES= lib/pkg_printf_test.c \
lib/pkg_printf.c
CLEANFILES= lib/pkg_printf.c
BUILT_SOURCES= lib/pkg_printf.c
pkg_printf_CFLAGS= $(PRIVATE_INCS)
pkg_printf_LDADD= $(GENERIC_LDADD)
pkg_validation_SOURCES= lib/pkg_validation.c
pkg_validation_CFLAGS= $(PUBLIC_INCS)
pkg_validation_LDADD= $(GENERIC_LDADD)
plist_SOURCES= lib/plist.c
plist_CFLAGS= $(PRIVATE_INCS)
plist_LDADD= $(GENERIC_LDADD)
pkg_add_dir_to_del_SOURCES= lib/pkg_add_dir_to_del.c
pkg_add_dir_to_del_CFLAGS= $(PRIVATE_INCS)
pkg_add_dir_to_del_LDADD= $(GENERIC_LDADD)
merge_SOURCES= lib/merge.c
merge_CFLAGS= $(PRIVATE_INCS)
merge_LDADD= $(GENERIC_LDADD)
EXTRA_DIST= frontend/png.uclin \
frontend/sqlite3.uclin \
Kyuafile \
frontend/Kyuafile \
frontend/annotate.shin \
frontend/pkg.shin \
frontend/search.shin \
frontend/version.shin \
frontend/test_environment.shin \
frontend/register.shin \
frontend/packagesplit.shin
TESTS =
tests_programs= pkg_printf \
pkg_validation \
plist \
pkg_add_dir_to_del \
merge
EXTRA_PROGRAMS= $(tests_programs)
check_PROGRAMS= $(tests_programs)
check_SCRIPTS= frontend/pkg.sh \
frontend/annotate.sh \
frontend/search.sh \
frontend/version.sh \
frontend/register.sh \
frontend/packagesplit.sh \
frontend/test_environment.sh \
frontend/png.ucl \
frontend/sqlite3.ucl
CLEANFILES+= ${check_SCRIPTS}
SUFFIXES = .sh .ucl
.shin.sh:
@echo " GEN " $@;
@install -m 755 $< $@
.uclin.ucl:
@echo " GEN " $@;
@install -m 644 $< $@
lib/pkg_printf.c:
@echo " CP " $@;
@cp $(top_srcdir)/libpkg/pkg_printf.c $@