gfileutils: Remove old win32 codepage ABI compat code
[glib.git] / gmodule / makefile.msc.in
blob431dd50f05bc9a9b760bcb1a6d58beb385d41105
1 ## Makefile for building the gmodule dll with Microsoft C
2 ## Use: nmake -f makefile.msc install
4 TOP = ..\..
6 !INCLUDE ..\build\win32\make.msc
8 ################################################################
10 INCLUDES = -FImsvc_recommended_pragmas.h -I .. -I . -I ..\glib
11 DEFINES = -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"GModule\"
13 all : \
14         gmoduleconf.h \
15         libgmodule-2.0-@LT_CURRENT_MINUS_AGE@.dll
17 gmodule_OBJECTS = \
18         gmodule.obj
19 gmodule.def: gmodule.symbols\r
20         echo EXPORTS > gmodule.def\r
21         cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DINCLUDE_INTERNAL_SYMBOLS -DALL_FILES \\r
22                 -DG_GNUC_MALLOC= -DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= -DG_GNUC_NORETURN= \\r
23                 -DG_GNUC_PRINTF=;G_GNUC_PRINTF gmodule.symbols >> gmodule.def\r
26 gmoduleconf.h: gmoduleconf.h.win32
27         copy gmoduleconf.h.win32 gmoduleconf.h
29 gmodule.res : gmodule.rc
30         rc -DBUILDNUMBER=0 -r -fo gmodule.res gmodule.rc
32 libgmodule-2.0-@LT_CURRENT_MINUS_AGE@.dll : $(gmodule_OBJECTS) gmodule.def gmodule.res
33         $(CC) $(CFLAGS) -LD -Fe$@ $(gmodule_OBJECTS) gmodule.res \
34         ..\glib\glib-2.0.lib $(LDFLAGS) /implib:gmodule-2.0.lib /def:gmodule.def
36 clean::
37         del gmoduleconf.h