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
RevLine 
[0]1INCLUDES=@XPSDK_INCLUDES@
2
[11]3AM_CXXFLAGS=$(VSCPL_CFLAGS) $(LIBXPLCOMMON_CFLAGS)
[0]4
[2]5AM_CPPFLAGS=-DXPLM210
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 \
18 SetMultiDataRefRequest.cc
[0]19
20noinst_HEADERS= \
[8]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 \
[9]32 GetMultiDataRefRequest.h \
33 SetMultiDataRefRequest.h
[12]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.