1999-04-13 21:05:08 +00:00
|
|
|
## Makefile for building the GLib test programs with Microsoft C
|
1999-04-24 13:52:51 +00:00
|
|
|
## Use: nmake -f makefile.msc check
|
1999-04-13 21:05:08 +00:00
|
|
|
|
2000-10-06 21:32:59 +00:00
|
|
|
TOP = ..\..
|
1999-04-13 21:05:08 +00:00
|
|
|
|
2000-10-06 21:32:59 +00:00
|
|
|
!INCLUDE $(TOP)\build\win32\make.msc
|
1999-04-13 21:05:08 +00:00
|
|
|
|
2000-10-06 21:32:59 +00:00
|
|
|
# Possibly override GLib version in build\win32\module.defs
|
|
|
|
GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
|
1999-04-13 21:05:08 +00:00
|
|
|
|
2000-10-06 21:32:59 +00:00
|
|
|
################################################################
|
1999-04-13 21:05:08 +00:00
|
|
|
|
2000-10-06 21:32:59 +00:00
|
|
|
# Nothing much configurable below
|
1999-04-13 21:05:08 +00:00
|
|
|
|
2000-10-06 21:32:59 +00:00
|
|
|
INCLUDES = -I..
|
|
|
|
DEFINES = -DHAVE_CONFIG_H
|
1999-04-13 21:05:08 +00:00
|
|
|
|
|
|
|
TESTS = \
|
|
|
|
array-test.exe \
|
|
|
|
date-test.exe \
|
|
|
|
dirname-test.exe\
|
2000-10-06 21:43:25 +00:00
|
|
|
gio-test.exe \
|
1999-04-13 21:05:08 +00:00
|
|
|
hash-test.exe \
|
|
|
|
list-test.exe \
|
|
|
|
node-test.exe \
|
|
|
|
queue-test.exe \
|
|
|
|
rand-test.exe \
|
|
|
|
relation-test.exe\
|
|
|
|
slist-test.exe \
|
2000-10-06 21:43:25 +00:00
|
|
|
# strfunc-test doesn't compile with MSVC
|
2000-10-06 21:32:59 +00:00
|
|
|
# strfunc-test.exe\
|
1999-07-31 21:45:21 +00:00
|
|
|
string-test.exe \
|
1999-06-20 22:20:43 +00:00
|
|
|
thread-test.exe \
|
2000-05-01 21:13:02 +00:00
|
|
|
threadpool-test.exe\
|
1999-04-13 21:05:08 +00:00
|
|
|
tree-test.exe \
|
|
|
|
type-test.exe
|
|
|
|
|
|
|
|
all : $(TESTS)
|
|
|
|
|
2000-10-06 21:32:59 +00:00
|
|
|
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 >$@
|
|
|
|
|
1999-04-13 21:05:08 +00:00
|
|
|
.c.exe :
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
2000-10-06 21:32:59 +00:00
|
|
|
$(CC) $(CFLAGS) -Fe$@ $< ..\glib-$(GLIB_VER).lib ..\gmodule\gmodule-$(GLIB_VER).lib ..\gthread\gthread-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
|
1999-04-13 21:05:08 +00:00
|
|
|
|
|
|
|
check: all
|
|
|
|
for %p in ($(TESTS)) do %p
|