gwenhywfar/src/Makefile.am @ ed8aef94
6b567527 | aquamaniac | INCLUDES = $(all_includes) \
|
|
-I$(top_srcdir) \
|
|||
-I$(top_srcdir)/src/base \
|
|||
-I$(top_srcdir)/src/crypt \
|
|||
-I$(top_srcdir)/src/io \
|
|||
-I$(top_srcdir)/src/ipc \
|
|||
-I$(top_srcdir)/src/net \
|
|||
-I$(top_srcdir)/src/os \
|
|||
-I$(top_srcdir)/src/parser \
|
|||
9474b3bb | aquamaniac | -I$(top_srcdir)/gwenui
|
|
58292787 | aquamaniac | ||
d8f33628 | aquamaniac | ||
9474b3bb | aquamaniac | SUBDIRS = base crypt io ipc os parser net
|
|
e8c38d4b | cstim | ||
58292787 | aquamaniac | localedir=$(datadir)/locale
|
|
a6ca17dc | aquamaniac | DEFS=-DLOCALEDIR=\"$(localedir)\" @DEFS@
|
|
58292787 | aquamaniac | ||
3ca7a382 | aquamaniac | ||
EXTRA_DIST=\
|
|||
230c36cc | aquamaniac | types.h.in \
|
|
88dc6282 | aquamaniac | version.h.in
|
|
3ca7a382 | aquamaniac | ||
1f8f1970 | aquamaniac | iheaderdir=${includedir}/gwenhywfar
|
|
a15eca3f | aquamaniac | iheader_HEADERS=\
|
|
1f8f1970 | aquamaniac | gwenhywfar.h \
|
|
gwenhywfarapi.h \
|
|||
310ae6e5 | aquamaniac | types.h \
|
|
3243d0ff | aquamaniac | version.h
|
|
a15eca3f | aquamaniac | ||
3d38b3b3 | aquamaniac | lib_LTLIBRARIES=libgwenhywfar.la
|
|
1f8f1970 | aquamaniac | libgwenhywfar_la_SOURCES=\
|
|
gwenhywfar.c
|
|||
a15eca3f | aquamaniac | ||
1f8f1970 | aquamaniac | libgwenhywfar_la_LIBADD=\
|
|
a15eca3f | aquamaniac | base/libbase.la \
|
|
21dc46ad | aquamaniac | crypt/libcrypt.la \
|
|
a15eca3f | aquamaniac | io/libio.la \
|
|
35983cd1 | aquamaniac | ipc/libipc.la \
|
|
dafb784e | aquamaniac | net/libnet.la \
|
|
b63d7810 | aquamaniac | os/libos.la \
|
|
9474b3bb | aquamaniac | parser/libparser.la @all_libraries@ @ssl_libraries@ @ssl_lib@
|
|
e8c38d4b | cstim | ||
1f8f1970 | aquamaniac | libgwenhywfar_la_LDFLAGS= \
|
|
88dc6282 | aquamaniac | @STRIPALL@ -version-info \
|
|
793860b4 | aquamaniac | @GWENHYWFAR_SO_CURRENT@:@GWENHYWFAR_SO_REVISION@:@GWENHYWFAR_SO_AGE@
|
|
a15eca3f | aquamaniac | ||
1721655e | cstim | # Before compiling the sources, first built these files
|
|
BUILT_SOURCES = types.h version.h
|
|||
3bfc7e77 | aquamaniac | ||
84394cc5 | aquamaniac | ||
e68be609 | aquamaniac | # dll stuff
|
|
if IS_WINDOWS
|
|||
3bfc7e77 | aquamaniac | ||
e68be609 | aquamaniac | # you only need to setup these variables here, the rest is done automatically
|
|
ce5d63bb | cstim | LIBRARY_NAME = gwenhywfar32_$(GWENHYWFAR_SO_EFFECTIVE)
|
|
e68be609 | aquamaniac | DLLLDLIBS = -L/mingw/lib $(ssl_libraries) $(ssl_lib) -lwsock32
|
|
DLLLDFLAGS = $(STRIPALL) $(LDFLAGS)
|
|||
3bfc7e77 | aquamaniac | ||
e68be609 | aquamaniac | ###------------------------------------------------------------------------
|
|
# You should not have to make any modifications below this point
|
|||
#
|
|||
02ee75c3 | cstim | ||
ce5d63bb | cstim | DLLNAME = $(LIBRARY_NAME).dll
|
|
DLLEXP_LIB = $(LIBRARY_NAME).lib
|
|||
DLLEXP_DEF = $(LIBRARY_NAME).def
|
|||
DLLSRC_LIB = $(lib_LTLIBRARIES:.la=.a)
|
|||
DLLSRC_LIBLA = $(lib_LTLIBRARIES)
|
|||
3bfc7e77 | aquamaniac | ||
e68be609 | aquamaniac | all-local: dll
|
|
#@GWEN_MAKE_DLL_TARGET@
|
|||
install-exec-local: dll-install
|
|||
#@GWEN_INSTALL_DLL_TARGET@
|
|||
DLLTOOL=dlltool
|
|||
DLLWRAP=dllwrap
|
|||
WINDRES=windres
|
|||
3bfc7e77 | aquamaniac | ||
da71cc30 | aquamaniac | dll: $(DLLNAME)
|
|
3bfc7e77 | aquamaniac | ||
dll-install: dll
|
|||
e68be609 | aquamaniac | $(INSTALL) -D $(DLLNAME) $(DESTDIR)$(WIN_PATH_WINDOWS_MINGW)/$(DLLNAME)
|
|
3bfc7e77 | aquamaniac | ||
ressource.o: ressource.rc
|
|||
$(WINDRES) -i $< -o $@
|
|||
e68be609 | aquamaniac | $(DLLNAME): $(DLLSRC_LIBLA) ressource.o
|
|
5eb34ee3 | cstim | mkdir -p dlldir && \
|
|
e68be609 | aquamaniac | ( \
|
|
5eb34ee3 | cstim | if test -r $(DLLSRC_LIB); then \
|
|
SRCLIB=$(DLLSRC_LIB); \
|
|||
else \
|
|||
SRCLIB=.libs/$(DLLSRC_LIB); \
|
|||
fi; \
|
|||
cd dlldir && ar x "../$${SRCLIB}" && \
|
|||
e68be609 | aquamaniac | ( ls ../.libs/*.o && cp ../.libs/*.o .) && \
|
|
$(DLLTOOL) -e ../exports.o *.o && \
|
|||
$(DLLWRAP) \
|
|||
--export-all \
|
|||
--output-def ../$(DLLEXP_DEF) \
|
|||
--implib ../$(DLLEXP_LIB) \
|
|||
--driver-name $(CC) \
|
|||
-o ../$(DLLNAME) \
|
|||
*.o ../exports.o \
|
|||
../ressource.o $(DLLLDFLAGS) $(DLLLDLIBS) \
|
|||
)
|
|||
94b84740 | cstim | ||
da71cc30 | aquamaniac | CLEANFILES = $(DLLNAME) $(DLLEXP_LIB) $(DLLEXP_DEF)
|
|
e68be609 | aquamaniac | ||
endif
|
|||
ce5d63bb | cstim | # IS_WINDOWS
|
|
e68be609 | aquamaniac |