mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 03:02:10 +01:00
* Makefile.am: Don't distribute glibconfig.h.win32.in, but glibconfig.h.win32. Generate it when making a dist. Also generate makefile.msc and config.h.win32 from corresponding .in files when making dist. * configure.in: Also substitute @GLIB_INTERFACE_AGE@ and @GLIB_BINARY_AGE@ (needed in config.h.win32). * glibconfig.h.win32.in: Use static mutex structure and initial value corresponding to the 1999-04-07 snapshot of pthreads-win32. * tests/Makefile.am: Distribute makefile.msc. Generate it when making dist. * tests/makefile.msc.in: New file. * tests/node-test.c: Include <stdlib.h> for exit().
50 lines
931 B
Plaintext
50 lines
931 B
Plaintext
## Makefile for building the GLib test programs with Microsoft C
|
|
## Use: nmake -f makefile.msc check
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
# cl -? describes the options
|
|
CC = cl -G5 -GF -Ox -W3 -MD -nologo
|
|
|
|
# No general LDFLAGS needed
|
|
LDFLAGS = /link
|
|
|
|
GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
|
|
|
|
CFLAGS = -I.. -DHAVE_CONFIG_H
|
|
|
|
TESTS = \
|
|
array-test.exe \
|
|
dirname-test.exe\
|
|
hash-test.exe \
|
|
list-test.exe \
|
|
node-test.exe \
|
|
relation-test.exe\
|
|
slist-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
|