summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-02-05 17:54:56 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-02-05 18:59:46 +0100
commit83ac2a8d259bb07f8cc754d8eacd0a63217d713c (patch)
treeffe220c05372b237623b4e8211262ccd6437b82f /plugingui
parent50d510c6e66673849ff1eabbe9a8d6f9e363b1fc (diff)
Compile engine as a library.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/Makefile.am28
1 files changed, 10 insertions, 18 deletions
diff --git a/plugingui/Makefile.am b/plugingui/Makefile.am
index e67b9f6..1e90c89 100644
--- a/plugingui/Makefile.am
+++ b/plugingui/Makefile.am
@@ -1,16 +1,13 @@
noinst_PROGRAMS = plugingui rcgen
noinst_LTLIBRARIES = libdggui.la
-#include Makefile.am.plugingui
-
resource_data.cc : rcgen
(cd resources; ../rcgen * > ../resource_data.cc)
-PLUGIN_GUI_LIBS = $(GUI_LIBS) $(PTHREAD_LIBS)
-
-PLUGIN_GUI_CPPFLAGS = \
- $(GUI_CPPFLAGS) -I$(top_srcdir)/hugin \
- -I$(top_srcdir)/plugingui \
+libdggui_la_CPPFLAGS = \
+ $(GUI_CPPFLAGS) \
+ -I$(top_srcdir)/hugin \
+ -I$(top_srcdir)/src \
-DWITH_HUG_MUTEX $(PTHREAD_CFLAGS) \
-DLODEPNG_NO_COMPILE_ENCODER \
-DLODEPNG_NO_COMPILE_DISK \
@@ -18,10 +15,10 @@ PLUGIN_GUI_CPPFLAGS = \
-DLODEPNG_NO_COMPILE_ERROR_TEXT \
-DLODEPNG_NO_COMPILE_CPP
-libdggui_la_CPPFLAGS = $(PLUGIN_GUI_CPPFLAGS) -I../src
-libdggui_la_LIBADD = $(PLUGIN_GUI_LIBS)
+libdggui_la_LIBADD = \
+ $(GUI_LIBS) $(PTHREAD_LIBS)
+
nodist_libdggui_la_SOURCES = \
- $(top_srcdir)/hugin/hugin.c \
dgwindow.cc \
plugingui.cc \
label.cc \
@@ -76,7 +73,6 @@ if ENABLE_PUGL
nodist_libdggui_la_SOURCES += \
nativewindow_pugl.cc \
$(top_srcdir)/pugl/pugl/pugl_x11.c
-PLUGIN_GUI_CPPFLAGS += -I$(top_srcdir)/pugl/pugl
endif
#if ENABLE_COCOA
@@ -85,20 +81,16 @@ endif
# nativewindow_cocoa.cc
#endif
-plugingui_LDADD = $(PLUGIN_GUI_LIBS) libdggui.la
+plugingui_LDADD = libdggui.la $(top_srcdir)/src/libdg.la
plugingui_CXXFLAGS = $(SNDFILE_CXXFLAGS) $(PTHREAD_CFLAGS) $(EXPAT_CFLAGS) \
- -I$(top_srcdir)/include $(PLUGIN_GUI_CPPFLAGS) -I$(top_srcdir)/src \
- -DSTANDALONE
+ -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/hugin
plugingui_CFLAGS = $(plugingui_CXXFLAGS)
plugingui_SOURCES = \
testmain.cc \
- $(top_srcdir)/src/configfile.cc \
- $(top_srcdir)/src/thread.cc \
- $(top_srcdir)/src/semaphore.cc \
- $(top_srcdir)/src/mutex.cc
+ $(top_srcdir)/hugin/hugin.c
rcgen_SOURCES = rcgen.cc