summaryrefslogtreecommitdiff
path: root/tests/testatk_vc.mak
blob: 17e2a7ab858077ecf46c63148d61463d112e0374 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
!include ..\build\detectenv-msvc.mak

LD_CFLAGS = /link
EXEEXT = .exe
GLIB_LIBS = gobject-2.0.lib gmodule-2.0.lib glib-2.0.lib

ATK_API_VERSION = 1.0

BUILD_PATH = ..\build\win32\vs$(VSVER)\$(CFG)\$(PLAT)\bin
LDFLAGS_PATH = /libpath:$(BUILD_PATH) /libpath:..\..\vs$(VSVER)\$(PLAT)\lib

TEST_ATK_LIBS = atk-$(ATK_API_VERSION).lib $(GLIB_LIBS)

LDFLAGS =	\
	$(LDFLAGS_PATH)	\
	$(LDFLAGS_ARCH)

CFLAGS =	\
	$(CFLAGS_ADD) /DG_DISABLE_DEPRECATED /I..	\
	/I..\..\vs$(VSVER)\$(PLAT)\include\glib-2.0	\
	/I..\..\vs$(VSVER)\$(PLAT)\lib\glib-2.0\include	\
	/I..\..\vs$(VSVER)\$(PLAT)\include\glib-2.0

EMPTY_ITEM =

test_programs = \
	testdocument$(EXEEXT)	\
	testrole$(EXEEXT)	\
	testrelation$(EXEEXT)	\
	teststateset$(EXEEXT)	\
	testvalue$(EXEEXT)	\
	$(EMPTY_ITEM)

!if "$(VALID_CFGSET)" == "FALSE"
all:
	!@-echo You need to run "nmake -f testatk_vc.mak CFG=release" or
	!@-echo "nmake -f testatk_vc.mak CFG=debug" to use this Makefile to
	!@-echo build the test programs.

clean:
	@-del /q/f *$(EXEEXT).manifest
	@-del /q/f *$(EXEEXT)
	@-del /q/f *.idb
	@-del /q/f *.obj
	@-del /q/f *.pdb
!else
all: $(test_programs)

.c$(EXEEXT):
	$(CC) $(CFLAGS) $< $(LD_CFLAGS) $(LDFLAGS) $(TEST_ATK_LIBS) /Fe$@
	@-if exist $@.manifest mt /nologo /manifest $@.manifest /outputresource:$@;1

clean:
	@-del /q/f *$(EXEEXT).manifest
	@-del /q/f *$(EXEEXT)
	@-del /q/f *.idb
	@-del /q/f *.obj
	@-del /q/f *.pdb
!endif