Upstream tarball 9962
[amule.git] / src / libs / ec / cpp / Makefile.am
blobb2fd2c6f676d0f7d6335ebfee2ce5339a270bac2
1 AM_CPPFLAGS = $(MULECPPFLAGS) -I$(top_srcdir)/src -I$(top_srcdir)/src/libs -I$(top_srcdir)/src/include $(WX_CPPFLAGS) $(ZLIB_CPPFLAGS)
2 AM_CXXFLAGS = $(MULECXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CXXFLAGS_ONLY)
4 EXTRA_DIST = gen_ECVersion
6 # Sources
8 noinst_LIBRARIES = \
9         libec.a
11 libec_a_SOURCES = \
12         ECTag.cpp \
13         ECPacket.cpp \
14         ECSocket.cpp \
15         ECMuleSocket.cpp \
16         RemoteConnect.cpp \
17         ECSpecialTags.cpp
19 noinst_HEADERS =  \
20                 ECTag.h \
21                 ECSocket.h \
22                 ECMuleSocket.h \
23                 ECPacket.h \
24                 ECFileConfig.h \
25                 ECSpecialTags.h \
26                 ECCodes.h \
27                 ECTagTypes.h \
28                 RemoteConnect.h
30 MAINTAINERCLEANFILES = Makefile.in
32 BUILT_SOURCES = ECVersion.h
34 CLEANFILES = ECVersion.h EC-timestamp mkFileSum$(BUILD_EXEEXT)
36 mkFileSum$(BUILD_EXEEXT): $(top_srcdir)/src/utils/mkFileSum.c
37         $(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $(BUILD_LDFLAGS) $^ -o $@
39 ECVersion.h: EC-timestamp
40         @if test ! -f $@; then \
41           rm -f EC-timestamp; \
42           $(MAKE) EC-timestamp; \
43         else :; fi
45 EC-timestamp: mkFileSum$(BUILD_EXEEXT) $(top_srcdir)/src/libs/ec/cpp/gen_ECVersion $(top_srcdir)/src/libs/ec/cpp/ECCodes.h
46         @echo "ECVersion.h timestamp file" > EC-timestamp
47         @$(top_srcdir)/src/libs/ec/cpp/gen_ECVersion $(top_srcdir)