summaryrefslogtreecommitdiff
path: root/src/glibext/Makefile.am
blob: adbec4cf7387f1df9e4d8a36c9871d771f82d2c8 (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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109

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

noinst_LTLIBRARIES  = libglibext.la libglibextui.la

# libglibext_la_SOURCES =						\
# 	comparison-int.h						\
# 	comparison.h comparison.c				\
# 	configuration-int.h						\
# 	configuration.h configuration.c			\
# 	gbinarycursor.h gbinarycursor.c			\
# 	glinecursor-int.h						\
# 	glinecursor.h glinecursor.c				\
# 	gnhash.h gnhash.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 +=					\
# 	gloadedpanel-int.h						\
# 	gloadedpanel.h gloadedpanel.c			\
# 	named-int.h								\
# 	named.h named.c

# endif

# libglibext_la_CFLAGS = $(TOOLKIT_CFLAGS) $(LIBXML_CFLAGS)

#libglibext_la_LIBADD = 					\
#	generators/libglibextgenerators.la


libglibext_la_SOURCES =						\
	chrysamarshal.h chrysamarshal.c			\
	helpers.h								\
	portion-int.h							\
	portion.h portion.c						\
	work-int.h								\
	work.h work.c							\
	workgroup-int.h							\
	workgroup.h workgroup.c					\
	workqueue-int.h							\
	workqueue.h workqueue.c

libglibext_la_CFLAGS = $(TOOLKIT_CFLAGS)


RES_FILES =									\
	tokenstyle.css

libglibextui_la_SOURCES =					\
	buffercache-int.h						\
	buffercache.h buffercache.c				\
	bufferline-int.h						\
	bufferline.h bufferline.c				\
	bufferview-int.h						\
	bufferview.h bufferview.c				\
	generator-int.h							\
	generator.h generator.c					\
	linecolumn.h linecolumn.c				\
	linetoken.h linetoken.c					\
	options-int.h							\
	options.h options.c						\
	tokenstyle-int.h						\
	tokenstyle.h tokenstyle.c				\
	resources.h resources.c					\
	widthtracker-int.h						\
	widthtracker.h widthtracker.c

libglibextui_la_CFLAGS = $(LIBGTK4_CFLAGS)

libglibextui_la_LIBADD = 					\
	generators/libglibextgenerators.la		\
	options/libglibextoptions.la


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

dev_HEADERS = $(libglibext_la_SOURCES:%c=) $(libglibextui_la_SOURCES:%c=)


SUBDIRS = generators options


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)