source: xplra/src/xplra/Makefile.am@ 12:3696a9f93983

Last change on this file since 12:3696a9f93983 was 12:3696a9f93983, checked in by István Váradi <ivaradi@…>, 12 years ago

Customized the linking procedure

File size: 1.2 KB
Line 
1INCLUDES=@XPSDK_INCLUDES@
2
3AM_CXXFLAGS=$(VSCPL_CFLAGS) $(LIBXPLCOMMON_CFLAGS)
4
5AM_CPPFLAGS=-DXPLM210
6
7SRCS= \
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 \
17 GetMultiDataRefRequest.cc \
18 SetMultiDataRefRequest.cc
19
20noinst_HEADERS= \
21 ListenThread.h \
22 Request.h \
23 RequestQueue.h \
24 Protocol.h \
25 ServerThread.h \
26 Task.h \
27 TaskRequest.h \
28 DataRefTask.h \
29 GetDataRefTask.h \
30 SetDataRefTask.h \
31 MultiTaskRequest.h \
32 GetMultiDataRefRequest.h \
33 SetMultiDataRefRequest.h
34
35if TARGET_API_POSIX
36AM_CPPFLAGS+=-DLIN
37AM_CXXFLAGS+=-fPIC -fno-stack-protector
38AM_LDFLAGS=-shared -rdynamic -nodefaultlibs -undefined_warning -Wl,-version-script=$(srcdir)/version.ldscript
39noinst_PROGRAMS=lin.xpl
40lin_xpl_SOURCES=$(SRCS)
41lin_xpl_LDADD=$(VSCPL_LIBS) $(LIBXPLCOMMON_LIBS)
42endif
43
44if TARGET_API_WIN32
45AM_CPPFLAGS+=-DIBM
46AM_LDFLAGS=-shared -Wl,--enable-auto-image-base
47
48noinst_PROGRAMS=win.xpl
49win_xpl_SOURCES=$(SRCS)
50
51win_xpl_LDADD=@XPSDK_LDFLAGS@
52if TARGET_API_WIN64
53win_xpl_LDADD+=-lXPLM_64
54else
55win_xpl_LDADD+=-lXPLM
56endif
57win_xpl_LDADD+=$(VSCPL_LIBS) $(LIBXPLCOMMON_LIBS)
58endif
Note: See TracBrowser for help on using the repository browser.