File: Makefile.am

package info (click to toggle)
cpdb-libs 1.2.0-2%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 308 kB
  • sloc: ansic: 1,305; sh: 97; makefile: 89; xml: 77
file content (52 lines) | stat: -rw-r--r-- 2,011 bytes parent folder | download
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
EXTRA_DIST = interface

BUILT_SOURCES = backend_interface.h frontend_interface.h

lib_LTLIBRARIES	= libcpdb-libs-frontend.la libcpdb-libs-common.la

libcpdb_libs_common_la_SOURCES = backend_interface.c frontend_interface.c common_helper.c
libcpdb_libs_common_la_CPPFLAGS  = $(GLIB_CFLAGS)
libcpdb_libs_common_la_CPPFLAGS += $(GIO_CFLAGS)
libcpdb_libs_common_la_CPPFLAGS += $(GIOUNIX_CFLAGS)

libcpdb_libs_common_la_LIBADD  = $(GLIB_LIBS)
libcpdb_libs_common_la_LIBADD += $(GIO_LIBS)
libcpdb_libs_common_la_LIBADD += $(GIOUNIX_LIBS)

libcpdb_libs_common_la_LDFLAGS = -no-undefined -version-info 1 -Wl,-z,now -Wl,-z,relro

libcpdb_libs_frontend_la_SOURCES = frontend_helper.c
libcpdb_libs_frontend_la_CPPFLAGS  = $(GLIB_CFLAGS)
libcpdb_libs_frontend_la_CPPFLAGS += $(GIO_CFLAGS)
libcpdb_libs_frontend_la_CPPFLAGS += $(GIOUNIX_CFLAGS)

libcpdb_libs_frontend_la_LIBADD  = -lcups -lpthread -lm -lcrypt
libcpdb_libs_frontend_la_LIBADD += $(GLIB_LIBS)
libcpdb_libs_frontend_la_LIBADD += $(GIO_LIBS)
libcpdb_libs_frontend_la_LIBADD += $(GIOUNIX_LIBS)

libcpdb_libs_frontend_la_LDFLAGS = -no-undefined -version-info 1 -Wl,-z,now -Wl,-z,relro

##INSTALL HEADERS
cpd_interface_headersdir = $(includedir)/cpd-interface-headers
cpd_interface_headers_HEADERS = backend_interface.h \
                                frontend_interface.h \
                                common_helper.h \
                                frontend_helper.h 

include_HEADERS = cpdb-libs-backend.h cpdb-libs-frontend.h 

backend_interface.c backend_interface.h: interface/org.openprinting.Backend.xml
	$(AM_V_GEN)gdbus-codegen --generate-c-code backend_interface \
    --interface-prefix org.openprinting \
    interface/org.openprinting.Backend.xml 

frontend_interface.c frontend_interface.h: interface/org.openprinting.Frontend.xml
	$(AM_V_GEN)gdbus-codegen --generate-c-code frontend_interface \
    --interface-prefix org.openprinting \
    interface/org.openprinting.Frontend.xml

genfiles = *_interface.*

clean-local:
	rm -f $(genfiles)