mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
b6ba941b50
2001-03-01 Tor Lillqvist <tml@iki.fi> * gutils.c (g_path_is_absolute): (Win32) Remove test for initial double backslash (UNC path), this will of course be matched by the test for an initial G_DIR_SEPARATOR right up front. Silly me. (g_find_program_in_path): Implement on Win32. (g_get_any_init): (Win32) Also look for the USERPROFILE env var indicating the home directory equivalent. * testglib.c (main): Test g_find_program_in_path() on Win32 by looking for more.com and regedit.exe. * glib.def: Add g_find_program_in_path.
146 lines
3.3 KiB
Plaintext
146 lines
3.3 KiB
Plaintext
## Makefile for building the GLib dlls with Microsoft C
|
|
## Use: nmake -f makefile.msc
|
|
|
|
TOP = ..
|
|
|
|
!INCLUDE build\win32\make.msc
|
|
|
|
# Possibly override GLib version in build\win32\module.defs
|
|
GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
INCLUDES = -I .
|
|
DEFINES = -DHAVE_CONFIG_H -DGLIB_COMPILATION -DG_LOG_DOMAIN=g_log_domain_glib -DG_ENABLE_DEBUG
|
|
DEPCFLAGS = $(INTL_CFLAGS) $(LIBICONV_CFLAGS)
|
|
|
|
DLLS_TO_BUILD = \
|
|
glib-$(GLIB_VER).dll \
|
|
sub-gmodule \
|
|
sub-gthread \
|
|
sub-gobject
|
|
|
|
all : \
|
|
config.h \
|
|
glibconfig.h \
|
|
$(DLLS_TO_BUILD) \
|
|
gspawn-win32-helper.exe \
|
|
testglib.exe \
|
|
testgdate.exe \
|
|
testgdateparser.exe
|
|
|
|
glib_OBJECTS = \
|
|
garray.obj \
|
|
gasyncqueue.obj \
|
|
gbacktrace.obj \
|
|
gcache.obj \
|
|
gcompletion.obj \
|
|
gconvert.obj \
|
|
gdataset.obj \
|
|
gdate.obj \
|
|
gerror.obj \
|
|
gfileutils.obj \
|
|
ghash.obj \
|
|
ghook.obj \
|
|
giochannel.obj \
|
|
giowin32.obj \
|
|
glist.obj \
|
|
gmain.obj \
|
|
gmarkup.obj \
|
|
gmem.obj \
|
|
gmessages.obj \
|
|
gnode.obj \
|
|
gprimes.obj \
|
|
gqsort.obj \
|
|
gqueue.obj \
|
|
grand.obj \
|
|
grel.obj \
|
|
gscanner.obj \
|
|
gshell.obj \
|
|
gslist.obj \
|
|
gspawn-win32.obj \
|
|
gstrfuncs.obj \
|
|
gstring.obj \
|
|
gthread.obj \
|
|
gthreadpool.obj \
|
|
gtimer.obj \
|
|
gtree.obj \
|
|
gunibreak.obj \
|
|
gunidecomp.obj \
|
|
guniprop.obj \
|
|
gutf8.obj \
|
|
gutils.obj \
|
|
gwin32.obj
|
|
|
|
glibconfig.h: glibconfig.h.win32
|
|
copy glibconfig.h.win32 glibconfig.h
|
|
|
|
config.h: config.h.win32
|
|
copy config.h.win32 config.h
|
|
|
|
makefile.msc: makefile.msc.in
|
|
$(SED) -e s,@GLIB[_]MAJOR_VERSION@,@GLIB_MAJOR_VERSION@, \
|
|
-e s,@GLIB[_]MINOR_VERSION@,@GLIB_MINOR_VERSION@, <makefile.msc.in >$@
|
|
|
|
################ glib
|
|
|
|
glib-$(GLIB_VER).dll : $(glib_OBJECTS) glib.def
|
|
$(CC) $(CFLAGS) -LD -Feglib-$(GLIB_VER).dll $(glib_OBJECTS) $(INTL_LIBS) $(LIBICONV_LIBS) user32.lib advapi32.lib wsock32.lib $(LDFLAGS) /def:glib.def
|
|
|
|
gspawn-win32-helper.exe : gspawn-win32-helper.c glib-$(GLIB_VER).dll
|
|
$(CC) $(CFLAGS) -Fe$@ -DG_LOG_DOMAIN=\"gspawn-win32-helper\" gspawn-win32-helper.c glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:windows user32.lib
|
|
|
|
################ subdirectories
|
|
|
|
sub-gmodule :
|
|
cd gmodule
|
|
-$(MAKE) -f makefile.msc all
|
|
cd ..
|
|
|
|
sub-gthread :
|
|
cd gthread
|
|
-$(MAKE) -f makefile.msc all
|
|
cd ..
|
|
|
|
sub-gobject :
|
|
cd gobject
|
|
-$(MAKE) -f makefile.msc all
|
|
cd ..
|
|
|
|
################ test progs
|
|
|
|
testglib.obj : testglib.c
|
|
$(CC) -c $(CFLAGS) -DG_LOG_DOMAIN=\"testglib\" testglib.c
|
|
|
|
testglib.exe : glib-$(GLIB_VER).dll testglib.obj
|
|
$(CC) $(CFLAGS) -Fetestglib.exe testglib.obj glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
|
|
|
|
testgdate.obj : testgdate.c
|
|
$(CC) -c $(CFLAGS) -DG_LOG_DOMAIN=\"testgdate\" testgdate.c
|
|
|
|
testgdate.exe : glib-$(GLIB_VER).dll testgdate.obj
|
|
$(CC) $(CFLAGS) -Fetestgdate.exe testgdate.obj glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
|
|
|
|
testgdateparser.obj : testgdateparser.c
|
|
$(CC) -c $(CFLAGS) -DG_LOG_DOMAIN=\"testgdateparser\" testgdateparser.c
|
|
|
|
testgdateparser.exe : glib-$(GLIB_VER).dll testgdateparser.obj
|
|
$(CC) $(CFLAGS) -Fetestgdateparser.exe testgdateparser.obj glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
|
|
|
|
################ other stuff
|
|
|
|
clean::
|
|
del config.h
|
|
del glibconfig.h
|
|
cd gmodule
|
|
$(MAKE) -f makefile.msc clean
|
|
cd ..
|
|
cd gthread
|
|
$(MAKE) -f makefile.msc clean
|
|
cd ..
|
|
cd gobject
|
|
$(MAKE) -f makefile.msc clean
|
|
cd ..
|