makefile.msc.in 2.68 KB
Newer Older
1
## Makefile for building the GLib test programs with Microsoft C
2
## Use: nmake -f makefile.msc check
3

4
TOP = ..\..
5

Tor Lillqvist's avatar
Tor Lillqvist committed
6
!INCLUDE ..\build\win32\make.msc
7

8
################################################################
9

10
INCLUDES = -FImsvc_recommended_pragmas.h -I .. -I ..\glib -I ..\gmodule
11
DEFINES = -DHAVE_CONFIG_H -DENABLE_REGEX
12

Tor Lillqvist's avatar
Tor Lillqvist committed
13 14 15 16 17 18 19
NONAUTOMATIC_TESTS = \
	testglib.exe	\
	testgdate.exe	\
	testgdateparser.exe \
	unicode-normalize.exe \
	unicode-collate.exe

20
TESTS = \
21 22 23 24 25 26
	atomic-test.exe \
	asyncqueue-test.exe \
	base64-test.exe \
	bit-test.exe \
	bookmarkfile-test.exe \
	child-test.exe \
27
	checksum-test.exe \
28 29
	completion-test.exe \
	convert-test.exe \
30
	date-test.exe	\
31 32 33 34
	dirname-test.exe \
	env-test.exe \
	errorcheck-mutex-test.exe \
	file-test.exe \
35
	gio-test.exe	\
36
	iochannel-test.exe \
37 38
	hash-test.exe	\
	list-test.exe	\
39
	mainloop-test.exe \
40
	mapping-test.exe \
Hans Breuer's avatar
Hans Breuer committed
41
#c99	markup-collect.exe \
42
	markup-escape-test.exe \
Tor Lillqvist's avatar
Tor Lillqvist committed
43
	markup-test.exe	\
44
#main?	memchunks.exe \
Tor Lillqvist's avatar
Tor Lillqvist committed
45
	module-test.exe	\
46
	node-test.exe	\
Hans Breuer's avatar
Hans Breuer committed
47
#c99	onceinit.exe \
48
	patterntest.exe \
49
	queue-test.exe	\
50 51 52
	qsort-test.exe \
	regex-test.exe \
	relation-test.exe \
Hans Breuer's avatar
Hans Breuer committed
53 54
	scannerapi.exe \
	sequence-test.exe \
55
	shell-test.exe	\
56
	slice-color.exe \
Hans Breuer's avatar
Hans Breuer committed
57 58
#unistd	slice-concurrent.exe\
	slice-threadinit.exe \
59
	slice-test.exe	\
60
	slist-test.exe	\
61
	spawn-test.exe	\
Hans Breuer's avatar
Hans Breuer committed
62
	testingbase64.exe \
63
	thread-test.exe	\
Hans Breuer's avatar
Hans Breuer committed
64 65 66 67
	threadpool-test.exe \
#unistd	timeloop-basic.exe \
#unistd	timeloop-closure.exe \
#unistd	timeloop.exe \
68
	tree-test.exe	\
69
	type-test.exe	\
Tor Lillqvist's avatar
Tor Lillqvist committed
70
	unicode-caseconv.exe \
71
	unicode-encoding.exe \
72 73 74
	utf8-validate.exe \
	utf8-pointer.exe \
	uri-test.exe \
Hans Breuer's avatar
Hans Breuer committed
75 76
	\
	gio-ls.exe
Tor Lillqvist's avatar
Tor Lillqvist committed
77 78

DLLS = \
Tor Lillqvist's avatar
Tor Lillqvist committed
79 80
	libmoduletestplugin_a.dll \
	libmoduletestplugin_b.dll
81

Tor Lillqvist's avatar
Tor Lillqvist committed
82
all :	$(TESTS) $(NONAUTOMATIC_TESTS) $(DLLS)
83 84 85

.c.exe :
	$(CC) $(CFLAGS) -c $<
86
	$(CC) $(CFLAGS) -Fe$@ $< ..\glib\glib-2.0.lib ..\gmodule\gmodule-2.0.lib ..\gthread\gthread-2.0.lib $(LDFLAGS) user32.lib /subsystem:console
87

Hans Breuer's avatar
Hans Breuer committed
88 89 90 91 92 93
gio-ls.exe : gio-ls.obj
	$(CC) $(CFLAGS) -Fe$@ gio-ls.obj \
	..\glib\glib-2.0.lib ..\gmodule\gmodule-2.0.lib ..\gthread\gthread-2.0.lib \
	..\gobject\gobject-2.0.lib ..\gio\gio-2.0.lib \
	$(LDFLAGS) user32.lib /subsystem:console

94 95 96 97
slice-test.exe : memchunks.obj slice-test.obj 
	$(CC) $(CFLAGS) -Fe$@ memchunks.obj slice-test.obj \
	..\glib\glib-2.0.lib ..\gmodule\gmodule-2.0.lib ..\gthread\gthread-2.0.lib $(LDFLAGS) user32.lib /subsystem:console
	
Tor Lillqvist's avatar
Tor Lillqvist committed
98
libmoduletestplugin_a.dll : libmoduletestplugin_a.obj
99
	$(CC) $(CFLAGS) -LD libmoduletestplugin_a.obj ..\gmodule\gmodule-2.0.lib ..\glib\glib-2.0.lib $(LDFLAGS)
Tor Lillqvist's avatar
Tor Lillqvist committed
100 101

libmoduletestplugin_b.dll : libmoduletestplugin_b.obj
102
	$(CC) $(CFLAGS) -LD libmoduletestplugin_b.obj ..\gmodule\gmodule-2.0.lib ..\glib\glib-2.0.lib $(LDFLAGS)
Tor Lillqvist's avatar
Tor Lillqvist committed
103

104
check:	all
105
	for %p in ($(TESTS)) do set PATH=..\glib;..\gmodule;..\gobject;..\gthread;%PATH% && %p