gwenhywfar/src/Makefile.am @ 931141cc
0ec87ba9 | cstim | INCLUDES = $(all_includes) -I$(srcdir)/os/$(GWEN_OS)
|
|
d8f33628 | aquamaniac | ||
83d13c8c | aquamaniac | SUBDIRS=base crypt io os parser net
|
|
3ca7a382 | aquamaniac | ||
EXTRA_DIST=\
|
|||
230c36cc | aquamaniac | types.h.in \
|
|
88dc6282 | aquamaniac | version.h.in
|
|
3ca7a382 | aquamaniac | ||
1f8f1970 | aquamaniac | lib_LTLIBRARIES=libgwenhywfar.la
|
|
iheaderdir=${includedir}/gwenhywfar
|
|||
a15eca3f | aquamaniac | iheader_HEADERS=\
|
|
1f8f1970 | aquamaniac | gwenhywfar.h \
|
|
gwenhywfarapi.h \
|
|||
310ae6e5 | aquamaniac | types.h \
|
|
3243d0ff | aquamaniac | version.h
|
|
a15eca3f | aquamaniac | ||
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 \
|
|
dafb784e | aquamaniac | net/libnet.la \
|
|
b63d7810 | aquamaniac | os/libos.la \
|
|
793860b4 | aquamaniac | parser/libparser.la @all_libraries@
|
|
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
|
|
LIBRARY_NAME=gwenhywfar
|
|||
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 | ||
e68be609 | aquamaniac | DLLNAME=$(LIBRARY_NAME)32.dll
|
|
DLLEXP_LIB=$(LIBRARY_NAME)32.lib
|
|||
DLLEXP_DEF=$(LIBRARY_NAME)32.def
|
|||
DLLSRC_LIB=lib$(LIBRARY_NAME).a
|
|||
DLLSRC_LIBLA=lib$(LIBRARY_NAME).la
|
|||
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
|
|||