mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
09683edc5c
2000-10-27 Tor Lillqvist <tml@iki.fi> * makefile.{mingw,msc}.in (glib_OBJECTS): Add gmarkup. * glib.def: Add missing functions. * tests/makefile.{mingw,msc}.in (TESTS): Add markup-test.
53 lines
1.2 KiB
Plaintext
53 lines
1.2 KiB
Plaintext
## Makefile for building the GLib test programs with Microsoft C
|
|
## Use: nmake -f makefile.msc check
|
|
|
|
TOP = ..\..
|
|
|
|
!INCLUDE $(TOP)\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
|
|
|
|
TESTS = \
|
|
array-test.exe \
|
|
date-test.exe \
|
|
dirname-test.exe\
|
|
gio-test.exe \
|
|
hash-test.exe \
|
|
list-test.exe \
|
|
markup-test.exe \
|
|
node-test.exe \
|
|
queue-test.exe \
|
|
rand-test.exe \
|
|
relation-test.exe\
|
|
shell-test.exe \
|
|
slist-test.exe \
|
|
spawn-test.exe \
|
|
# strfunc-test doesn't compile with MSVC
|
|
# strfunc-test.exe\
|
|
string-test.exe \
|
|
thread-test.exe \
|
|
threadpool-test.exe\
|
|
tree-test.exe \
|
|
type-test.exe
|
|
|
|
all : $(TESTS)
|
|
|
|
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 >$@
|
|
|
|
.c.exe :
|
|
$(CC) $(CFLAGS) -c $<
|
|
$(CC) $(CFLAGS) -Fe$@ $< ..\glib-$(GLIB_VER).lib ..\gmodule\gmodule-$(GLIB_VER).lib ..\gthread\gthread-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
|
|
|
|
check: all
|
|
for %p in ($(TESTS)) do %p
|