File: Makefile.am

package info (click to toggle)
seafile 6.2.11-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,468 kB
  • sloc: ansic: 34,270; python: 5,192; makefile: 249; sh: 239
file content (85 lines) | stat: -rw-r--r-- 2,156 bytes parent folder | download | duplicates (2)
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
pcfiles = libseafile.pc
pkgconfig_DATA = $(pcfiles)
pkgconfigdir = $(libdir)/pkgconfig

AM_CPPFLAGS = @GLIB2_CFLAGS@ -I$(top_srcdir)/include \
	-I$(top_srcdir)/lib \
	-I$(top_srcdir)/common \
	@SEARPC_CFLAGS@ \
	@MSVC_CFLAGS@ \
	-Wall

BUILT_SOURCES = gensource

## source file rules
seafile_object_define = repo.vala task.vala

seafile_object_gen = $(seafile_object_define:.vala=.c)

valac_gen = ${seafile_object_gen} seafile-object.h

EXTRA_DIST = ${seafile_object_define} rpc_table.py $(pcfiles) vala.stamp

utils_headers = net.h utils.h db.h

utils_srcs = $(utils_headers:.h=.c)

noinst_HEADERS = ${utils_headers} include.h

seafiledir = $(includedir)/seafile
seafile_HEADERS = seafile-object.h

seafile-rpc-wrapper.c: seafile-object.h

seafile-object.h: ${seafile_object_define}
	rm -f $@
	@VALAC@ --pkg posix ${seafile_object_define} -C -H seafile-object.h

DISTCLEANFILES = ${searpc_gen}

## library rules
lib_LTLIBRARIES = libseafile.la

libseafile_la_SOURCES = ${seafile_object_gen} seafile-rpc-wrapper.c

libseafile_la_LDFLAGS = -no-undefined
libseafile_la_LIBADD = @GLIB2_LIBS@  @GOBJECT_LIBS@ @SEARPC_LIBS@

noinst_LTLIBRARIES = libseafile_common.la

libseafile_common_la_SOURCES = ${seafile_object_gen} ${utils_srcs}
libseafile_common_la_LDFLAGS = -no-undefined
libseafile_common_la_LIBADD = @GLIB2_LIBS@  @GOBJECT_LIBS@ @LIB_GDI32@ \
				     @LIB_UUID@ @LIB_WS32@ @LIB_PSAPI@ -lsqlite3 \
					 @LIBEVENT_LIBS@ @SEARPC_LIBS@ @LIB_SHELL32@ \
	@ZLIB_LIBS@

searpc_gen = searpc-signature.h searpc-marshal.h

gensource: ${searpc_gen} ${valac_gen}

rpc_table.stamp: ${top_srcdir}/lib/rpc_table.py
	@rm -f rpc_table.tmp
	@touch rpc_table.tmp
	@echo "[libsearpc]: generating rpc header files"
	@SEARPC_CODEGEN@ ${top_srcdir}/lib/rpc_table.py
	@echo "[libsearpc]: done"
	@mv -f rpc_table.tmp $@

${searpc_gen}: rpc_table.stamp

vala.stamp: ${seafile_object_define}
	rm -f ${seafile_object_gen}
	@rm -f vala.tmp
	@touch vala.tmp
	@VALAC@ -C --pkg posix $^
	@mv -f vala.tmp $@

${seafile_object_gen}: vala.stamp

clean-local:
	rm -f ${searpc_gen}
	rm -f rpc_table.pyc
	rm -f rpc_table.stamp
	rm -f rpc_table.tmp
	rm -f vala.tmp vala.stamp ${valac_gen}