mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 02:06:18 +01:00
2aa1277d60
i.e. gcc -mno-cygwin on cygwin (a.k.a. mingw32, using egcs-1.1.2). * README.win32: Updated. * build-dll makefile.cygwin tests/makefile.cygwin: New files. * glib.h glib.def glibconfig.h.win32 makefile.msc: Slight updates. * gmain.c: No need to include <fcntl.h> and <io.h> on Win32. * gmain.c gutils.c testglib.c tests/string-test.c: Test for NATIVE_WIN32, not _MSC_VER. * gmutex.c: Must declare g_thread_functions_for_glib_use as exported (using the GUTILS_C_VAR macro). * gutils.c gmodule/libgplugin_[ab].c: LibMain not needed. * gmodule/gmoduleconf.h.win32: Need underscore with gcc. * gthread/gthread.c: With gcc on Win32, must use memcpy to assign value of g_thread_functions_for_glib_use (?). * makefile.msc tests/makefile.msc: Cosmetics.
54 lines
914 B
Plaintext
54 lines
914 B
Plaintext
## Makefile for building the GLib test programs with Microsoft C
|
|
## Use: nmake -f makefile.msc check
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
# cl -? described the options
|
|
CC = cl -G5 -GF -Ox -W3 -MD -nologo
|
|
|
|
# No general LDFLAGS needes
|
|
LDFLAGS = /link
|
|
|
|
GLIB_VER = 1.3
|
|
|
|
CFLAGS = -I.. -DHAVE_CONFIG_H
|
|
|
|
TESTS = \
|
|
array-test.exe \
|
|
date-test.exe \
|
|
dirname-test.exe\
|
|
hash-test.exe \
|
|
list-test.exe \
|
|
node-test.exe \
|
|
queue-test.exe \
|
|
rand-test.exe \
|
|
relation-test.exe\
|
|
slist-test.exe \
|
|
stack-test.exe \
|
|
string-test.exe \
|
|
strfunc-test.exe\
|
|
tree-test.exe \
|
|
type-test.exe
|
|
|
|
all : $(TESTS)
|
|
|
|
.c.exe :
|
|
$(CC) $(CFLAGS) -c $<
|
|
$(CC) $(CFLAGS) -Fe$@ $< ..\glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
|
|
|
|
check: all
|
|
for %p in ($(TESTS)) do %p
|
|
|
|
clean:
|
|
del *.exe
|
|
del *.obj
|
|
del *.dll
|
|
del *.lib
|
|
del *.err
|
|
del *.map
|
|
del *.sym
|
|
del *.exp
|
|
del *.pdb
|