makefile.msc 2.98 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 30 31 32 33 34 35 36 37 38

TOUCH = copy makefile.msc+nul

!IFNDEF TESTAPP

all :	\
	..\config.h	\
	prop-editor.obj \
	all-test-apps

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


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

64 65 66
# syntax error : illegal character '-' in macro
#stresstest-toolbar

Hans Breuer's avatar
Hans Breuer committed
67 68

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

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

!ELSE

76 77
EXTRA_OBJETCS = prop-editor.obj

78 79 80
!IFDEF EXTRA_buildertest
EXTRA_LIBS = $(ATK_LIBS)
!ENDIF
81

82 83 84 85
!IFDEF EXTRA_testoffscreen
EXTRA_OBJETCS = gtkoffscreenbox.obj
!ENDIF

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

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

95 96
!IFDEF EXTRA_testfilechooser
EXTRA_LIBS = gdi32.lib user32.lib shell32.lib
97 98
!ENDIF

Hans Breuer's avatar
Hans Breuer committed
99 100 101 102 103 104 105 106
!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
107 108
$(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
109
	$(PANGO_LIBS) $(PANGOCAIRO_LIBS) $(GLIB_LIBS) $(CAIRO_LIBS) $(EXTRA_LIBS) $(LDFLAGS)
Hans Breuer's avatar
Hans Breuer committed
110 111 112 113

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

114
!ENDIF