aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: c7adeed53bf6df6932d3582e9019b3e3d3206293 (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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
ACLOCAL_AMFLAGS = -I m4

AM_CFLAGS = @WARN_CFLAGS@ @ALTIVEC_CFLAGS@

extra_dist_files = \
	libtwin/twin_thread.c \
	twin_demos/ftwin.cursor \
	twin_demos/twinperf.c \
	twin_fedit/Makefile \
	twin_fedit/nchars \
	twin_fedit/twin-fedit.c \
	twin_fedit/twin-fedit.h \
	twin_fedit/twin-sfit.c \
	twin_ttf/Vera.ttf

EXTRA_DIST = architecture autogen.sh $(extra_dist_files)

EXTRA_PROGRAMS = 

bin_PROGRAMS =
lib_LTLIBRARIES = libtwin/libtwin.la
pkginclude_HEADERS = libtwin/twin.h

libtwin_libtwin_la_LDFLAGS = -version-info @LIB_VERSION@
libtwin_libtwin_la_SOURCES = \
	libtwin/twin_box.c \
	libtwin/twin_button.c \
	libtwin/twin_convolve.c \
	libtwin/twin_cursor.c \
	libtwin/twin_dispatch.c \
	libtwin/twin_draw.c \
	libtwin/twin_feature.c \
	libtwin/twin_hull.c \
	libtwin/twin_icon.c \
	libtwin/twin_file.c \
	libtwin/twin_fixed.c \
	libtwin/twin_font.c \
	libtwin/twin_font_default.c \
	libtwin/twin_geom.c \
	libtwin/twin_label.c \
	libtwin/twin_matrix.c \
	libtwin/twin_path.c \
	libtwin/twin_pattern.c \
	libtwin/twin_pixmap.c \
	libtwin/twin_poly.c \
	libtwin/twin_primitive.c \
	libtwin/twin_queue.c \
	libtwin/twin_screen.c \
	libtwin/twin_spline.c \
	libtwin/twin_timeout.c \
	libtwin/twin_toplevel.c \
	libtwin/twin_trig.c \
	libtwin/twin_widget.c \
	libtwin/twin_window.c \
	libtwin/twin_work.c \
	libtwin/twinint.h

if TWIN_X11
pkginclude_HEADERS += libtwin/twin_x11.h
libtwin_libtwin_la_SOURCES += libtwin/twin_x11.c
endif

if TWIN_FB
pkginclude_HEADERS += libtwin/twin_fbdev.h
libtwin_libtwin_la_SOURCES += libtwin/twin_fbdev.c
endif

if TWIN_MOUSE
pkginclude_HEADERS += libtwin/twin_linux_mouse.h
libtwin_libtwin_la_SOURCES += libtwin/twin_linux_mouse.c
endif

if TWIN_JOYSTICK
pkginclude_HEADERS += libtwin/twin_linux_js.h
libtwin_libtwin_la_SOURCES += libtwin/twin_linux_js.c
endif

if TWIN_TOUCHSCREEN
pkginclude_HEADERS += libtwin/twin_linux_touch.h
libtwin_libtwin_la_SOURCES += libtwin/twin_linux_touch.c
endif

if TWIN_PNG
pkginclude_HEADERS += libtwin/twin_png.h
libtwin_libtwin_la_SOURCES += libtwin/twin_png.c
endif

if TWIN_JPEG
pkginclude_HEADERS += libtwin/twin_jpeg.h
libtwin_libtwin_la_SOURCES += libtwin/twin_jpeg.c
endif

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libtwin.pc

# demo twin applications
EXTRA_PROGRAMS += twin_demos/xtwin twin_demos/ftwin
noinst_PROGRAMS =
noinst_LIBRARIES = twin_demos/libtwin_demos.a

if TWIN_X11
noinst_PROGRAMS += twin_demos/xtwin
endif

if TWIN_FB
noinst_PROGRAMS += twin_demos/ftwin
endif

twin_demos_xtwin_SOURCES = twin_demos/xtwin.c
twin_demos_xtwin_CFLAGS = @TWIN_DEP_CFLAGS@ -I$(top_srcdir)/twin_demos
twin_demos_xtwin_LDADD = twin_demos/libtwin_demos.a libtwin/libtwin.la \
	@TWIN_DEP_LDFLAGS@

twin_demos_ftwin_SOURCES = twin_demos/ftwin.c
twin_demos_ftwin_CFLAGS = @TWIN_DEP_CFLAGS@ -I$(top_srcdir)/twin_demos
twin_demos_ftwin_LDADD = twin_demos/libtwin_demos.a libtwin/libtwin.la \
	@TWIN_DEP_LDFLAGS@

twin_demos_libtwin_demos_a_CFLAGS = @WARN_CFLAGS@ -I$(top_srcdir)/twin_demos
twin_demos_libtwin_demos_a_SOURCES = \
	twin_demos/twin_calc.c twin_demos/twin_calc.h \
	twin_demos/twin_clock.c twin_demos/twin_clock.h \
	twin_demos/twin_demo.c twin_demos/twin_demo.h \
	twin_demos/twin_demoline.c twin_demos/twin_demoline.h \
	twin_demos/twin_demospline.c twin_demos/twin_demospline.h \
	twin_demos/twin_hello.c twin_demos/twin_hello.h \
	twin_demos/twin_text.c twin_demos/twin_text.h

# at the moment, the twin demos require twinint.h :(
twin_demos_xtwin_CFLAGS += -I$(top_srcdir)/libtwin
twin_demos_ftwin_CFLAGS += -I$(top_srcdir)/libtwin
twin_demos_libtwin_demos_a_CFLAGS += -I$(top_srcdir)/libtwin

# twin_ttf
EXTRA_PROGRAMS += twin_ttf/twin_ttf

if TWIN_TTF
bin_PROGRAMS += twin_ttf/twin_ttf
endif

twin_ttf_twin_ttf_SOURCES = \
	twin_ttf/twin_ttf.h \
	twin_ttf/twin_ttf.c

twin_ttf_twin_ttf_LDADD = @FREETYPE_LIBS@ -lm
twin_ttf_twin_ttf_CFLAGS = -g @WARN_CFLAGS@
twin_ttf_twin_ttf_CPPFLAGS = @FREETYPE_CFLAGS@ -I$(top_srcdir)/twin_ttf

MAINTAINERCLEANFILES = Makefile.in aclocal.m4 compile config.* configure \
	depcomp install-sh ltmain.sh missing twin_def.h.in* $(PACKAGE)-*.gz

maintainer-clean-local:
	rm -rf m4