makefile.msc 3.07 KB
Newer Older
Hans Breuer's avatar
Hans Breuer committed
1 2 3 4 5 6 7
## Makefile for building the gtk test apps with Microsoft C
## Use: nmake -f makefile.msc

## There is no install target, you have to decide where and 
## how to install for yourself.

TOP = ..\..
8
!INCLUDE $(TOP)/glib/build/win32/make.msc
Hans Breuer's avatar
Hans Breuer committed
9 10 11 12

################################################################

# Possibly override versions from build/win32/module.defs
Hans Breuer's avatar
Hans Breuer committed
13
GTK_VER = 3.0
Hans Breuer's avatar
Hans Breuer committed
14 15 16 17

GDK_LIBS = ../gdk/gdk-win32-$(GTK_VER).lib
GTK_LIBS = ../gtk/gtk-win32-$(GTK_VER).lib

Hans Breuer's avatar
Hans Breuer committed
18
INCLUDES = -I . -I .. -I ../gdk -I ../gtk $(GDK_PIXBUF_CFLAGS)
19
DEPCFLAGS = $(PANGO_CFLAGS) $(GLIB_CFLAGS) $(LIBICONV_CFLAGS) $(INTL_CFLAGS) $(ATK_CFLAGS) $(CAIRO_CFLAGS)
Hans Breuer's avatar
Hans Breuer committed
20
LDFLAGS = /link /machine:ix86 $(LINKDEBUG)
21
DEFINES = -DG_LOG_DOMAIN=\"GtkTest\" -DGTK_VERSION=\"$(GTK_VER)\"
Hans Breuer's avatar
Hans Breuer committed
22 23 24 25 26 27 28 29

TOUCH = copy makefile.msc+nul

!IFNDEF TESTAPP

all :	\
	..\config.h	\
	prop-editor.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
30
	testsocket_common.obj \
Hans Breuer's avatar
Hans Breuer committed
31 32 33 34 35 36 37 38 39
	all-test-apps

..\config.h : ..\config.h.win32
	copy ..\config.h.win32 ..\config.h


#
# Test programs:
#
Hans Breuer's avatar
Hans Breuer committed
40
TESTAPPS = \
41
#	autotestfilechooser autotestfilesystem \
Hans Breuer's avatar
Hans Breuer committed
42
#	buildertest floatingtest \
43
	flicker \
Hans Breuer's avatar
Hans Breuer committed
44
#	objecttests \
45
	testaccel testactions testassistant \
46 47
	testbbox testbuttons \
	testcairo testcalendar testcellrenderertext testclientmessage testcombo testcombochange \
Hans Breuer's avatar
Hans Breuer committed
48
	testdnd \
49
	testellipsise testentrycompletion testentryicons \
Hans Breuer's avatar
Hans Breuer committed
50
	testfilechooser testfilechooserbutton testframe \
51
	testgrouping testgtk \
52
	testicontheme testiconview testimage testinput \
Hans Breuer's avatar
Hans Breuer committed
53
	testmountoperation testmenubars testmerge testmultidisplay testmultiscreen \
54
	testnouiprint testnotebookdnd \
55
	testoffscreen testorientable \
56
	testprint \
Hans Breuer's avatar
Hans Breuer committed
57
	testrecentchooser testrecentchoosermenu testrichtext \
58
	testscale testselection testspinbutton \
Hans Breuer's avatar
Hans Breuer committed
59
	testtoolbar testtooltips \
Hans Breuer's avatar
Hans Breuer committed
60
	testtreecolumns testtreecolumnsizing testtreeedit testtreeflow testtreefocus \
61
	testtreemodel testtreesort testtreeview treestoretest \
62
	testsocket testsocket_child teststatusicon \
63
	testthreads testvolumebutton testwindows testxinerama \
Hans Breuer's avatar
Hans Breuer committed
64
	simple
Hans Breuer's avatar
Hans Breuer committed
65

66 67 68
# syntax error : illegal character '-' in macro
#stresstest-toolbar

Hans Breuer's avatar
Hans Breuer committed
69 70

all-test-apps: 
71
	@for %d in ($(TESTAPPS)) do @nmake -nologo -f makefile.msc one-test-app THIS=%d
Hans Breuer's avatar
Hans Breuer committed
72 73 74 75 76 77

one-test-app:
	@nmake -nologo -f makefile.msc $(THIS).exe TESTAPP=$(THIS) EXTRA_$(THIS)=1

!ELSE

78 79
EXTRA_OBJETCS = prop-editor.obj

80 81 82
!IFDEF EXTRA_buildertest
EXTRA_LIBS = $(ATK_LIBS)
!ENDIF
83

84 85 86 87
!IFDEF EXTRA_testoffscreen
EXTRA_OBJETCS = gtkoffscreenbox.obj
!ENDIF

88 89 90
!IFDEF EXTRA_testprint
EXTRA_OBJETCS = testprintfileoperation.obj
EXTRA_LIBS = $(PANGOCAIRO_LIBS)
91 92
!ENDIF

93 94
!IFDEF EXTRA_testnouiprint
EXTRA_LIBS = $(PANGOCAIRO_LIBS)
Hans Breuer's avatar
Hans Breuer committed
95 96
!ENDIF

97 98
!IFDEF EXTRA_testfilechooser
EXTRA_LIBS = gdi32.lib user32.lib shell32.lib
99 100
!ENDIF

Hans Breuer's avatar
updated  
Hans Breuer committed
101 102 103 104 105 106 107 108
!IFDEF EXTRA_testsocket
EXTRA_OBJETCS = testsocket_common.obj
!ENDIF

!IFDEF EXTRA_testsocket_child
EXTRA_OBJETCS = testsocket_common.obj
!ENDIF

Hans Breuer's avatar
Hans Breuer committed
109 110
$(TESTAPP).exe : ../gtk/gtk-win32-$(GTK_VER).lib $(TESTAPP).obj $(EXTRA_OBJETCS)
	$(CC) $(CFLAGS) $(TESTAPP).obj $(EXTRA_OBJETCS) $(GTK_LIBS) $(GDK_LIBS) $(GDK_PIXBUF_LIBS) \
Hans Breuer's avatar
Hans Breuer committed
111
	$(PANGO_LIBS) $(PANGOCAIRO_LIBS) $(GLIB_LIBS) $(CAIRO_LIBS) $(EXTRA_LIBS) $(LDFLAGS)
Hans Breuer's avatar
Hans Breuer committed
112 113 114 115

$(TESTAPP).obj : $(TESTAPP).c
	$(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"$(TESTAPP)\" $(TESTAPP).c

116
!ENDIF