mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 01:36:17 +01:00
fb55f0056e
* README.win32: Mention the tests directory. * glib.def: Add the functions from grand.c. * glibconfig.h.win32: Add unsigned max values, and the format strings. * makefile.msc: Add grand. * tests/{date-test,node-test}.c: Include <stdlib.h> for exit(). * tests/makefile.msc: New file.
55 lines
927 B
Plaintext
55 lines
927 B
Plaintext
## Makefile for building the GLib test programs with Microsoft C
|
|
## Use: nmake -f makefile.msc all
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
# cl -? described the options
|
|
CC = cl -G5 -GF -Ox -W3 -MD -nologo
|
|
|
|
# No general LDFLAGS needes
|
|
LDFLAGS = /link
|
|
INSTALL = copy
|
|
|
|
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
|