makefile.msc.in 1.85 KB
Newer Older
Tor Lillqvist's avatar
Tor Lillqvist committed
1
## Makefile for building the GLib test programs with Microsoft C
2
## Use: nmake -f makefile.msc check
Tor Lillqvist's avatar
Tor Lillqvist committed
3

4
TOP = ..\..
Tor Lillqvist's avatar
Tor Lillqvist committed
5

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

8
################################################################
Tor Lillqvist's avatar
Tor Lillqvist committed
9

Hans Breuer's avatar
Hans Breuer committed
10
INCLUDES = -I .. -I ..\glib -I ..\gmodule
Tor Lillqvist's avatar
Tor Lillqvist committed
11
DEFINES = -DHAVE_CONFIG_H
Tor Lillqvist's avatar
Tor Lillqvist committed
12

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

Tor Lillqvist's avatar
Tor Lillqvist committed
21 22
# mainloop-test removed for now until it is fixed

Tor Lillqvist's avatar
Tor Lillqvist committed
23 24 25 26
TESTS = \
	array-test.exe	\
	date-test.exe	\
	dirname-test.exe\
27
	gio-test.exe	\
Tor Lillqvist's avatar
Tor Lillqvist committed
28 29
	hash-test.exe	\
	list-test.exe	\
Tor Lillqvist's avatar
Tor Lillqvist committed
30
	markup-test.exe	\
Tor Lillqvist's avatar
Tor Lillqvist committed
31
	module-test.exe	\
Tor Lillqvist's avatar
Tor Lillqvist committed
32 33 34 35
	node-test.exe	\
	queue-test.exe	\
	rand-test.exe	\
	relation-test.exe\
36
	shell-test.exe	\
Tor Lillqvist's avatar
Tor Lillqvist committed
37
	slist-test.exe	\
38
	spawn-test.exe	\
39
# strfunc-test doesn't compile with MSVC
40
#	strfunc-test.exe\
Tor Lillqvist's avatar
Tor Lillqvist committed
41
	string-test.exe	\
Tor Lillqvist's avatar
Update.  
Tor Lillqvist committed
42
	strtod-test.exe \
43
	thread-test.exe	\
44
	threadpool-test.exe\
Tor Lillqvist's avatar
Tor Lillqvist committed
45
	tree-test.exe	\
46
	type-test.exe	\
Tor Lillqvist's avatar
Update.  
Tor Lillqvist committed
47 48 49 50
	unicode-caseconv.exe \
	unicode-encoding.exe

DLLS = \
Tor Lillqvist's avatar
Tor Lillqvist committed
51 52
	libmoduletestplugin_a.dll \
	libmoduletestplugin_b.dll
Tor Lillqvist's avatar
Tor Lillqvist committed
53

Tor Lillqvist's avatar
Update.  
Tor Lillqvist committed
54
all :	$(TESTS) $(NONAUTOMATIC_TESTS) $(DLLS)
Tor Lillqvist's avatar
Tor Lillqvist committed
55 56 57

.c.exe :
	$(CC) $(CFLAGS) -c $<
58
	$(CC) $(CFLAGS) -Fe$@ $< ..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\gmodule\gmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\gthread\gthread-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS) user32.lib /subsystem:console
Tor Lillqvist's avatar
Tor Lillqvist committed
59

Tor Lillqvist's avatar
Tor Lillqvist committed
60
libmoduletestplugin_a.dll : libmoduletestplugin_a.obj
61
	$(CC) $(CFLAGS) -LD libmoduletestplugin_a.obj ..\gmodule\gmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS)
Tor Lillqvist's avatar
Tor Lillqvist committed
62 63

libmoduletestplugin_b.dll : libmoduletestplugin_b.obj
64
	$(CC) $(CFLAGS) -LD libmoduletestplugin_b.obj ..\gmodule\gmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS)
Tor Lillqvist's avatar
Tor Lillqvist committed
65

Tor Lillqvist's avatar
Tor Lillqvist committed
66 67
check:	all
	for %p in ($(TESTS)) do %p