MSVC release builds: Ensure that /LTCG is used
[atk.git] / tests / testatk_vc.mak
blob39aeee0c7013c69135a2cfae5f631dd412428b5c
1 !include ..\build\detectenv-msvc.mak
3 BUILD_PATH = ..\build\win32\vs$(VSVER)\$(CFG)\$(PLAT)\bin
4 LDFLAGS_PATH = /libpath:$(BUILD_PATH) /libpath:..\..\vs$(VSVER)\$(PLAT)\lib
6 TEST_ATK_LIBS = atk-$(ATK_API_VERSION).lib $(GLIB_LIBS)
8 LDFLAGS = \
9 $(LDFLAGS_PATH) \
10 $(LDFLAGS_ARCH)
12 CFLAGS = \
13 $(CFLAGS_ADD) /DG_DISABLE_DEPRECATED /I.. \
14 /I..\..\vs$(VSVER)\$(PLAT)\include\glib-2.0 \
15 /I..\..\vs$(VSVER)\$(PLAT)\lib\glib-2.0\include \
16 /I..\..\vs$(VSVER)\$(PLAT)\include\glib-2.0
18 EMPTY_ITEM =
20 test_programs = \
21 testdocument$(EXEEXT) \
22 testrole$(EXEEXT) \
23 testrelation$(EXEEXT) \
24 teststateset$(EXEEXT) \
25 testvalue$(EXEEXT) \
26 $(EMPTY_ITEM)
28 !if "$(VALID_CFGSET)" == "FALSE"
29 all:
30 !@-echo You need to run "nmake -f testatk_vc.mak CFG=release" or
31 !@-echo "nmake -f testatk_vc.mak CFG=debug" to use this Makefile to
32 !@-echo build the test programs.
34 clean:
35 @-del /q/f *$(EXEEXT).manifest
36 @-del /q/f *$(EXEEXT)
37 @-del /q/f *.idb
38 @-del /q/f *.obj
39 @-del /q/f *.pdb
40 !else
41 all: $(test_programs)
43 .c$(EXEEXT):
44 $(CC) $(CFLAGS) $< $(LD_CFLAGS) $(LDFLAGS) $(TEST_ATK_LIBS) /Fe$@
45 @-if exist $@.manifest mt /nologo /manifest $@.manifest /outputresource:$@;1
47 clean:
48 @-del /q/f *$(EXEEXT).manifest
49 @-del /q/f *$(EXEEXT)
50 @-del /q/f *.idb
51 @-del /q/f *.obj
52 @-del /q/f *.pdb
53 !endif