all : \
gmoduleconf.h \
- gmodule-@GLIB_VERSION@.dll \
- testgmodule.exe \
- libgplugin_a.dll libgplugin_b.dll
-
-ifeq ($(wildcard makefile.mingw.in),makefile.mingw.in)
-makefile.mingw: makefile.mingw.in
- sed -e 's,@GLIB[_]VERSION@,@GLIB_VERSION@,' <$< >$@
-endif
+ libgmodule-2.0.a
gmodule_OBJECTS = \
gmodule.o
################ The gmodule DLL
-gmodule-@GLIB_VERSION@.dll : $(gmodule_OBJECTS) gmodule.def
- $(BUILD_DLL) gmodule @GLIB_VERSION@ $(CFLAGS) gmodule.def $(gmodule_OBJECTS) -L ../glib -lglib
-
-################ test prog
-
-testgmodule.exe : gmodule-@GLIB_VERSION@.dll testgmodule.o
-# We have to generate an .exp file separately with dlltool, and link
-# with that. Sigh.
- dlltool --output-exp testgmodule.exp testgmodule.o
- $(CC) $(CFLAGS) -o testgmodule.exe testgmodule.o testgmodule.exp -L ../glib -lglib -L . -lgmodule $(LFLAGS)
+libgmodule-2.0.a : $(gmodule_OBJECTS) gmodule.def gmodule-2.0.rc
+ $(BUILD_DLL) gmodule-2.0 @LT_CURRENT@:@LT_REVISION@:@LT_AGE@ $(CFLAGS) gmodule.def $(gmodule_OBJECTS) -L ../glib -lglib-2.0
-libgplugin_a.dll : libgplugin_a.o
- $(BUILD_DLL) libgplugin_a - libgplugin_a.o -L ../glib -lglib -L . -lgmodule
-
-libgplugin_b.dll : libgplugin_b.o
- $(BUILD_DLL) libgplugin_b - libgplugin_b.o -L ../glib -lglib -L . -lgmodule
+gmodule-2.0.rc : gmodule.rc
+ cp $< $@
################ Other stuff