2008-09-13 11:35:26 -07:00
|
|
|
SUBDIRS = platform
|
|
|
|
|
2008-09-07 16:47:53 -07:00
|
|
|
%_wrap_lua.cpp: %.i
|
|
|
|
$(SWIG) $(SWIG_LUA_OPT) -o $@ $<
|
|
|
|
|
|
|
|
BUILT_SOURCES = betawidget_wrap_lua.cpp
|
|
|
|
CLEANFILES = betawidget_wrap_lua.cpp
|
|
|
|
|
2008-09-06 08:05:55 -07:00
|
|
|
lib_LTLIBRARIES = libbetawidget.la
|
2008-09-06 06:26:03 -07:00
|
|
|
|
2008-09-07 16:47:53 -07:00
|
|
|
libbetawidget_la_SOURCES = betawidget_wrap_lua.cpp font.c geom.c hBox.c \
|
|
|
|
spacer.c textEntry.c vector.c widget.c window.c
|
2008-09-06 06:26:03 -07:00
|
|
|
|
2008-09-07 16:47:53 -07:00
|
|
|
libbetawidget_la_CPPFLAGS = $(CAIRO_SVG_CFLAGS) $(LUA_CFLAGS) -DLIB_COMPILE=1
|
2008-09-06 08:50:48 -07:00
|
|
|
libbetawidget_la_LDFLAGS = $(CAIRO_SVG_LIBS) $(OPENGL_LIBS)
|
2008-09-13 11:35:26 -07:00
|
|
|
libbetawidget_la_LIBADD = $(LUA_LIBTOOL) platform/libplatform.la libutil.la
|
2008-09-06 08:38:31 -07:00
|
|
|
|
2008-09-11 00:56:28 -07:00
|
|
|
# FIXME: As much non-API headers (i.e. headers that shouldn't be directly
|
|
|
|
# included by client code of betawidget) as possible should be moved to
|
|
|
|
# noinst_HEADERS.
|
|
|
|
pkginclude_HEADERS = clipboard.h font.h internal-cairo.h keycode.h geom.h \
|
|
|
|
hBox.h spacer.h textEntry.h vector.h widget.h window.h
|
|
|
|
noinst_HEADERS =
|
2008-09-06 06:26:03 -07:00
|
|
|
|
2008-09-06 09:11:30 -07:00
|
|
|
# utf.c, GLee
|
2008-09-13 11:35:26 -07:00
|
|
|
noinst_LTLIBRARIES = libutil.la
|
|
|
|
libutil_la_SOURCES = ../framework/utf.c ../ivis_opengl/GLee.c
|
|
|
|
libutil_la_CPPFLAGS = $(SDL_CFLAGS) -DLIB_COMPILE=1
|
2008-09-06 10:20:34 -07:00
|
|
|
noinst_HEADERS += ../framework/types.h ../framework/utf.h ../ivis_opengl/GLee.h
|
2008-09-06 09:11:30 -07:00
|
|
|
|
2008-09-07 15:50:25 -07:00
|
|
|
noinst_PROGRAMS = tools/sdl-testapp
|
|
|
|
|
|
|
|
tools_sdl_testapp_SOURCES = tools/sdl-testapp.c
|
2008-09-13 11:35:26 -07:00
|
|
|
tools_sdl_testapp_CPPFLAGS = -I.. $(LUA_CFLAGS) $(SDL_CFLAGS)
|
|
|
|
tools_sdl_testapp_LDADD = $(OPENGL_LIBS) $(SDL_LIBS) libbetawidget.la $(LUA_LIBTOOL)
|