1SUBDIRS = resources
2
3AM_CPPFLAGS = $(WX_CXXFLAGS) \
4           -I$(top_srcdir)/src/include \
5           -I$(top_srcdir)/src/sdk/wxscintilla/include
6
7pluginlibdir = $(pkglibdir)/plugins
8
9pluginlib_LTLIBRARIES = libAstyle.la
10
11libAstyle_la_LDFLAGS = @MODULE_SHARED_LDFLAGS@ -version-info 0:1:0 -no-undefined -avoid-version
12
13libAstyle_la_LIBADD = ../../sdk/libcodeblocks.la $(WX_LIBS)
14
15libAstyle_la_SOURCES = asstreamiterator.cpp \
16                       astyleconfigdlg.cpp \
17                       astyleplugin.cpp \
18                       dlgformattersettings.cpp \
19                       formattersettings.cpp
20
21noinst_HEADERS = asstreamiterator.h \
22                 astyleconfigdlg.h \
23                 astyleplugin.h \
24                 astylepredefinedstyles.h \
25                 dlgformattersettings.h \
26                 formattersettings.h
27
28EXTRA_DIST = astyle/ASLocalizer.cpp \
29             astyle/ASLocalizer.h \
30             astyle/astyle.html \
31             astyle/astyle_main.cpp \
32             astyle/astyle_main.h \
33             astyle/index.html \
34             astyle/install.html \
35             astyle/links.html \
36             astyle/news.html \
37             astyle/newsArchives.html \
38             astyle/notes.html \
39             astyle/notesArchives.html \
40             astyle/scripts.html \
41             astyle/styles.css \
42             astyle/subversion.html \
43             astyle/vsinstall.html
44
45if HAVE_ASTYLE
46libAstyle_la_LIBADD += -lastyle
47EXTRA_DIST += astyle/ASBeautifier.cpp \
48		astyle/ASEnhancer.cpp \
49		astyle/ASFormatter.cpp \
50		astyle/ASResource.cpp \
51                astyle/astyle.h
52else
53AM_CPPFLAGS += -I$(top_srcdir)/src/plugins/astyle/astyle
54libAstyle_la_SOURCES += astyle/ASBeautifier.cpp \
55                       astyle/ASEnhancer.cpp \
56                       astyle/ASFormatter.cpp \
57                       astyle/ASResource.cpp
58noinst_HEADERS += astyle/astyle.h
59endif
60