source: xplra/src/plugin/src/xplra/Makefile.am@ 75:901b47f772b0

Last change on this file since 75:901b47f772b0 was 75:901b47f772b0, checked in by István Váradi <ivaradi@…>, 11 years ago

Made it possible to build the used libraries as shared ones too

File size: 1.5 KB
RevLine 
[0]1INCLUDES=@XPSDK_INCLUDES@
2
[11]3AM_CXXFLAGS=$(VSCPL_CFLAGS) $(LIBXPLCOMMON_CFLAGS)
[0]4
[38]5AM_CPPFLAGS=-DXPLM100
[2]6
[12]7SRCS= \
[8]8 plugin.cc \
9 ListenThread.cc \
10 RequestQueue.cc \
11 ServerThread.cc \
12 TaskRequest.cc \
13 DataRefTask.cc \
14 GetDataRefTask.cc \
15 SetDataRefTask.cc \
16 MultiTaskRequest.cc \
[9]17 GetMultiDataRefRequest.cc \
[38]18 SetMultiDataRefRequest.cc \
[39]19 ReloadPluginsRequest.cc \
[44]20 Globals.cc \
[38]21 MessageWindow.cc \
[43]22 MessageRequest.cc \
[45]23 Menu.cc \
24 HotkeyHandler.cc
[0]25
26noinst_HEADERS= \
[8]27 ListenThread.h \
28 Request.h \
29 RequestQueue.h \
30 Protocol.h \
31 ServerThread.h \
32 Task.h \
33 TaskRequest.h \
34 DataRefTask.h \
35 GetDataRefTask.h \
36 SetDataRefTask.h \
37 MultiTaskRequest.h \
[9]38 GetMultiDataRefRequest.h \
[38]39 SetMultiDataRefRequest.h \
[39]40 ReloadPluginsRequest.h \
[44]41 Globals.h \
[38]42 MessageWindow.h \
[43]43 MessageRequest.h \
[45]44 Menu.h \
45 HotkeyHandler.h
[12]46
47if TARGET_API_POSIX
48AM_CPPFLAGS+=-DLIN
49AM_CXXFLAGS+=-fPIC -fno-stack-protector
[75]50AM_LDFLAGS=-shared -rdynamic -nodefaultlibs -undefined_warning -Wl,-version-script=$(srcdir)/version.ldscript -Wl,-Bstatic
[12]51noinst_PROGRAMS=lin.xpl
52lin_xpl_SOURCES=$(SRCS)
53lin_xpl_LDADD=$(VSCPL_LIBS) $(LIBXPLCOMMON_LIBS)
54endif
55
56if TARGET_API_WIN32
57AM_CPPFLAGS+=-DIBM
[59]58AM_LDFLAGS=-shared -Wl,--enable-auto-image-base -static -static-libgcc -static-libstdc++
[12]59
60noinst_PROGRAMS=win.xpl
61win_xpl_SOURCES=$(SRCS)
62
[59]63win_xpl_LDADD=$(LIBXPLCOMMON_LIBS) $(VSCPL_LIBS)
64win_xpl_LDADD+=@XPSDK_LDFLAGS@
[12]65if TARGET_API_WIN64
66win_xpl_LDADD+=-lXPLM_64
67else
68win_xpl_LDADD+=-lXPLM
69endif
70endif
[13]71
72EXTRA_DIST=version.ldscript
Note: See TracBrowser for help on using the repository browser.