summaryrefslogtreecommitdiff
path: root/src/conv/text/Makefile.am
blob: 941468ac386025c69255d9780f7029b19100686b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
if BUILD_TOOLS

bin_PROGRAMS = sdw2text

AM_CXXFLAGS = -I$(top_srcdir)/inc $(REVENGE_CFLAGS) $(REVENGE_GENERATORS_CFLAGS) $(REVENGE_STREAM_CFLAGS) $(DEBUG_CXXFLAGS)

sdw2text_DEPENDENCIES = @SDW2TEXT_WIN32_RESOURCE@

if STATIC_TOOLS

sdw2text_LDADD = \
	../../lib/@SDW_OBJDIR@/libsdw-@SDW_MAJOR_VERSION@.@SDW_MINOR_VERSION@.a \
	$(REVENGE_LIBS) $(REVENGE_GENERATORS_LIBS) $(REVENGE_STREAM_LIBS) @SDW2TEXT_WIN32_RESOURCE@
sdw2text_LDFLAGS = -all-static

else	

sdw2text_LDADD = \
	../../lib/libsdw-@SDW_MAJOR_VERSION@.@SDW_MINOR_VERSION@.la \
	$(REVENGE_LIBS) $(REVENGE_GENERATORS_LIBS) $(REVENGE_STREAM_LIBS) @SDW2TEXT_WIN32_RESOURCE@

endif

sdw2text_SOURCES = \
	sdw2text.cpp

if OS_WIN32

@SDW2TEXT_WIN32_RESOURCE@ : sdw2text.rc $(sdw2text_OBJECTS)
	chmod +x $(top_srcdir)/build/win32/*compile-resource
	WINDRES=@WINDRES@ $(top_srcdir)/build/win32/lt-compile-resource sdw2text.rc @SDW2TEXT_WIN32_RESOURCE@
endif

EXTRA_DIST = \
	$(sdw2text_SOURCES)	\
	sdw2text.rc.in

# These may be in the builddir too
BUILD_EXTRA_DIST = \
	sdw2text.rc	 
 
endif # BUILD_TOOLS