summaryrefslogtreecommitdiff
path: root/src/glibext/Makefile.am
blob: ba4e3fae18848f9efabc8b0020aeed91461b99fb (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
89
90
91
92
93
94

BUILT_SOURCES = chrysamarshal.h chrysamarshal.c resources.h resources.c

noinst_LTLIBRARIES  = libglibext4.la libglibextui.la # libglibext.la

libglibext_la_SOURCES =						\
	buffercache-int.h						\
	buffercache.h buffercache.c				\
	bufferline.h bufferline.c				\
	chrysamarshal.h chrysamarshal.c			\
	comparison-int.h						\
	comparison.h comparison.c				\
	configuration-int.h						\
	configuration.h configuration.c			\
	delayed-int.h							\
	delayed.h delayed.c						\
	gbinarycursor.h gbinarycursor.c			\
	gbinportion-int.h						\
	gbinportion.h gbinportion.c				\
	displayoptions.h displayoptions.c		\
	glinecursor-int.h						\
	glinecursor.h glinecursor.c				\
	gnhash.h gnhash.c						\
	linecolumn.h linecolumn.c				\
	notifier.h								\
	objhole.h								\
	proto.h									\
	seq.h seq.c								\
	_signal.h signal.c						\
	singleton.h singleton.c					\
	linetoken.h linetoken.c					\
	umemslice-int.h							\
	umemslice.h umemslice.c

if BUILD_GTK_SUPPORT

libglibext_la_SOURCES +=					\
	bufferview.h bufferview.c				\
	gloadedpanel-int.h						\
	gloadedpanel.h gloadedpanel.c			\
	named-int.h								\
	named.h named.c							\
	widthtracker.h widthtracker.c

endif

libglibext_la_CFLAGS = $(TOOLKIT_CFLAGS) $(LIBXML_CFLAGS)

#libglibext_la_LIBADD = 					\
#	generators/libglibextgenerators.la


libglibext4_la_SOURCES =					\
	helpers.h

libglibext4_la_CFLAGS = $(TOOLKIT_CFLAGS)


RES_FILES =									\
	tokenstyle.css

libglibextui_la_SOURCES =					\
	tokenstyle-int.h						\
	tokenstyle.h tokenstyle.c				\
	resources.h resources.c

libglibextui_la_CFLAGS = $(LIBGTK4_CFLAGS)


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

dev_HEADERS = $(libglibext_la_SOURCES:%c=)


#SUBDIRS = generators


chrysamarshal.h: chrysamarshal.list
	glib-genmarshal --header $< > $@

chrysamarshal.c: chrysamarshal.list
	echo "#include <$(subst .c,.h,$@)>" > $@
	glib-genmarshal --body $< >> $@

resources.c: gresource.xml $(RES_FILES)
	glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-source --c-name glibext gresource.xml

resources.h: gresource.xml
	glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-header --c-name glibext gresource.xml


CLEANFILES = resources.h resources.c

EXTRA_DIST = gresource.xml $(RES_FILES)