mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
61bdacfb59
Tue Nov 24 18:57:59 PST 1998 Manish Singh <yosh@gimp.org> * applied glib-tml-981120-0, change log appended below. * glibconfig.h.win32: passthrough 64-bit constants unchanged, VC++ infers them Fri Nov 20 22:26:43 1998 Tor Lillqvist <tml@iki.fi> * glib.h: Moved MSC pragmas from glib.h to glibconfig.h.win32. peer_offset field in WIN32 part of GIOChannel removed, need_wakeups added. Added "extern" to __declspec(dllimport). * gutils.c: Initialise need_wakeups. * glibconfig.h.win32: Pragmas moved here. Define G_GINT64_CONSTANT. * gmodule/gmodule.def: Added g_module_build_path. * gscanner.c: (g_scanner_cur_value) Move initailisation of v to before its use. * glib.def: Added g_(s)list_sort. * makefile.msc: A few more comments. -Yosh
122 lines
3.0 KiB
Plaintext
122 lines
3.0 KiB
Plaintext
## Makefile for building the GLib and gmodule dll with Microsoft C
|
|
## Use: nmake -f makefile.msc install
|
|
|
|
# Change this to wherever you want to install the DLLs. This directory
|
|
# should be in your PATH.
|
|
BIN = C:\bin
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
# cl -? described the options
|
|
CC = cl -G5 -GF -Ox -W3 -D_DLL -nologo
|
|
|
|
LDFLAGS = /link /nodefaultlib:libc msvcrt.lib # /debug:full /debugtype:cv
|
|
INSTALL = copy
|
|
TOUCH = copy makefile.msc+nul
|
|
|
|
GLIB_VER = 1.1
|
|
|
|
CFLAGS = -I.
|
|
|
|
all : \
|
|
glibconfig.h \
|
|
config.h \
|
|
glib-$(GLIB_VER).dll \
|
|
gmodule\gmoduleconf.h \
|
|
gmodule-$(GLIB_VER).dll \
|
|
testglib.exe \
|
|
testgmodule.exe
|
|
|
|
install : all
|
|
$(INSTALL) glib-$(GLIB_VER).dll $(BIN)
|
|
$(INSTALL) gmodule-$(GLIB_VER).dll $(BIN)
|
|
|
|
glib_OBJECTS = \
|
|
garray.obj \
|
|
gcache.obj \
|
|
gcompletion.obj \
|
|
gdataset.obj \
|
|
gerror.obj \
|
|
ghook.obj \
|
|
ghash.obj \
|
|
glist.obj \
|
|
gmem.obj \
|
|
gmessages.obj \
|
|
gnode.obj \
|
|
gprimes.obj \
|
|
gslist.obj \
|
|
gtimer.obj \
|
|
gtree.obj \
|
|
grel.obj \
|
|
gstring.obj \
|
|
gstrfuncs.obj \
|
|
gscanner.obj \
|
|
gutils.obj
|
|
|
|
glib-$(GLIB_VER).dll : $(glib_OBJECTS)
|
|
$(CC) $(CFLAGS) -MD -LD -Feglib-$(GLIB_VER).dll $(glib_OBJECTS) user32.lib advapi32.lib $(LDFLAGS) /def:glib.def
|
|
|
|
glibconfig.h: glibconfig.h.win32
|
|
copy glibconfig.h.win32 glibconfig.h
|
|
|
|
config.h: config.h.win32
|
|
copy config.h.win32 config.h
|
|
|
|
.c.obj :
|
|
$(CC) $(CFLAGS) -GD -c -DHAVE_CONFIG_H -DGLIB_COMPILATION -DG_LOG_DOMAIN=g_log_domain_glib $<
|
|
|
|
gmodule_OBJECTS = \
|
|
gmodule.obj
|
|
|
|
gmodule-$(GLIB_VER).dll : $(gmodule_OBJECTS)
|
|
$(CC) $(CFLAGS) -MD -LD -Fegmodule-$(GLIB_VER).dll $(gmodule_OBJECTS) glib-$(GLIB_VER).lib $(LDFLAGS) /def:gmodule\gmodule.def
|
|
|
|
gmodule.obj : gmodule\gmodule.c gmodule\gmodule-win32.c
|
|
$(CC) $(CFLAGS) -Igmodule -c -DG_LIB_DOMAIN=g_log_domain_gmodule gmodule\gmodule.c
|
|
|
|
gmodule\gmoduleconf.h: gmodule\gmoduleconf.h.win32
|
|
copy gmodule\gmoduleconf.h.win32 gmodule\gmoduleconf.h
|
|
|
|
testglib.exe : glib-$(GLIB_VER).dll testglib.obj
|
|
$(CC) $(CFLAGS) -MD -Fetestglib.exe testglib.obj glib-$(GLIB_VER).lib $(LDFLAGS) /map
|
|
|
|
testglib.obj : testglib.c
|
|
$(CC) -c $(CFLAGS) testglib.c
|
|
|
|
testgmodule.exe : glib-$(GLIB_VER).dll gmodule-$(GLIB_VER).dll testgmodule.obj libgplugin_a.dll libgplugin_b.dll
|
|
$(CC) $(CFLAGS) -MD testgmodule.obj glib-$(GLIB_VER).lib gmodule-$(GLIB_VER).lib $(LDFLAGS)
|
|
|
|
testgmodule.obj : gmodule\testgmodule.c
|
|
$(CC) $(CFLAGS) -Igmodule -c gmodule\testgmodule.c
|
|
|
|
libgplugin_a.dll : libgplugin_a.obj
|
|
$(CC) $(CFLAGS) -MD -LD libgplugin_a.obj glib-$(GLIB_VER).lib gmodule-$(GLIB_VER).lib $(LDFLAGS)
|
|
|
|
libgplugin_a.obj : gmodule\libgplugin_a.c
|
|
$(CC) $(CFLAGS) -Igmodule -c gmodule\libgplugin_a.c
|
|
|
|
libgplugin_b.dll : libgplugin_b.obj
|
|
$(CC) $(CFLAGS) -MD -LD libgplugin_b.obj glib-$(GLIB_VER).lib gmodule-$(GLIB_VER).lib $(LDFLAGS)
|
|
|
|
libgplugin_b.obj : gmodule\libgplugin_b.c
|
|
$(CC) $(CFLAGS) -Igmodule -c gmodule\libgplugin_b.c
|
|
|
|
clean:
|
|
del config.h
|
|
del glibconfig.h
|
|
del gmodule\gmoduleconf.h
|
|
del *.exe
|
|
del *.obj
|
|
del *.dll
|
|
del *.lib
|
|
del *.err
|
|
del *.map
|
|
del *.sym
|
|
del *.exp
|
|
del *.lk1
|
|
del *.mk1
|
|
del *.pdb
|
|
del *.ilk
|