2000-10-06 23:32:59 +02:00
|
|
|
## Makefile for building the gmodule dll with Microsoft C
|
|
|
|
## Use: nmake -f makefile.msc install
|
|
|
|
|
|
|
|
TOP = ..\..
|
|
|
|
|
2001-10-26 01:40:38 +02:00
|
|
|
!INCLUDE ..\build\win32\make.msc
|
2000-10-06 23:32:59 +02:00
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
2002-01-05 19:54:59 +01:00
|
|
|
INCLUDES = -FImsvc_recommended_pragmas.h -I .. -I . -I ..\glib
|
2001-07-20 19:01:30 +02:00
|
|
|
DEFINES = -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"GModule\"
|
2000-10-06 23:32:59 +02:00
|
|
|
|
|
|
|
all : \
|
|
|
|
gmoduleconf.h \
|
2002-11-21 04:25:35 +01:00
|
|
|
libgmodule-2.0-@LT_CURRENT_MINUS_AGE@.dll
|
2000-10-06 23:32:59 +02:00
|
|
|
|
|
|
|
gmodule_OBJECTS = \
|
|
|
|
gmodule.obj
|
2008-08-01 16:17:43 +02:00
|
|
|
gmodule.def: gmodule.symbols
|
|
|
|
echo EXPORTS > gmodule.def
|
|
|
|
cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DINCLUDE_INTERNAL_SYMBOLS -DALL_FILES \
|
|
|
|
-DG_GNUC_MALLOC= -DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= -DG_GNUC_NORETURN= \
|
|
|
|
-DG_GNUC_PRINTF=;G_GNUC_PRINTF gmodule.symbols >> gmodule.def
|
|
|
|
|
2000-10-06 23:32:59 +02:00
|
|
|
|
|
|
|
gmoduleconf.h: gmoduleconf.h.win32
|
|
|
|
copy gmoduleconf.h.win32 gmoduleconf.h
|
|
|
|
|
2004-10-29 22:58:04 +02:00
|
|
|
gmodule.res : gmodule.rc
|
|
|
|
rc -DBUILDNUMBER=0 -r -fo gmodule.res gmodule.rc
|
|
|
|
|
|
|
|
libgmodule-2.0-@LT_CURRENT_MINUS_AGE@.dll : $(gmodule_OBJECTS) gmodule.def gmodule.res
|
|
|
|
$(CC) $(CFLAGS) -LD -Fe$@ $(gmodule_OBJECTS) gmodule.res \
|
2002-11-21 04:25:35 +01:00
|
|
|
..\glib\glib-2.0.lib $(LDFLAGS) /implib:gmodule-2.0.lib /def:gmodule.def
|
2000-10-06 23:32:59 +02:00
|
|
|
|
|
|
|
clean::
|
|
|
|
del gmoduleconf.h
|