2001-05-06 14:07:49 +00:00
|
|
|
## 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 = ..\..
|
2001-11-09 21:52:52 +00:00
|
|
|
!INCLUDE $(TOP)/glib/build/win32/make.msc
|
2001-05-06 14:07:49 +00:00
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Possibly override versions from build/win32/module.defs
|
2002-03-05 21:04:09 +00:00
|
|
|
GTK_VER = 2.0
|
|
|
|
GDK_PIXBUF_VER = 2.0
|
2001-05-06 14:07:49 +00:00
|
|
|
|
|
|
|
GDK_LIBS = ../gdk/gdk-win32-$(GTK_VER).lib
|
|
|
|
GTK_LIBS = ../gtk/gtk-win32-$(GTK_VER).lib
|
|
|
|
GDK_PIXBUF_LIBS = ../gdk-pixbuf/gdk_pixbuf-$(GDK_PIXBUF_VER).lib
|
|
|
|
|
|
|
|
INCLUDES = -I . -I .. -I ../gdk -I ../gdk-pixbuf -I ../gtk
|
2005-02-07 20:22:05 +00:00
|
|
|
DEPCFLAGS = $(PANGO_CFLAGS) $(GLIB_CFLAGS) $(LIBICONV_CFLAGS) $(INTL_CFLAGS) $(ATK_CFLAGS) $(CAIRO_CFLAGS)
|
2001-05-06 14:07:49 +00:00
|
|
|
LDFLAGS = /link /machine:ix86 $(LINKDEBUG)
|
2001-11-02 15:39:04 +00:00
|
|
|
DEFINES = -DG_LOG_DOMAIN=\"GtkTest\" -DGTK_VERSION=\"$(GTK_VER)\"
|
2001-05-06 14:07:49 +00:00
|
|
|
|
|
|
|
TOUCH = copy makefile.msc+nul
|
|
|
|
|
|
|
|
!IFNDEF TESTAPP
|
|
|
|
|
|
|
|
all : \
|
|
|
|
..\config.h \
|
|
|
|
prop-editor.obj \
|
2005-07-30 18:53:44 +00:00
|
|
|
testsocket_common.obj \
|
2001-05-06 14:07:49 +00:00
|
|
|
all-test-apps
|
|
|
|
|
|
|
|
..\config.h : ..\config.h.win32
|
|
|
|
copy ..\config.h.win32 ..\config.h
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Test programs:
|
|
|
|
#
|
2003-11-15 20:35:55 +00:00
|
|
|
TESTAPPS = \
|
2008-06-20 20:39:22 +00:00
|
|
|
# autotestfilechooser autotestfilesystem \
|
2008-08-01 14:43:22 +00:00
|
|
|
# buildertest floatingtest \
|
2009-07-10 11:42:46 +00:00
|
|
|
flicker \
|
2008-08-01 14:43:22 +00:00
|
|
|
objecttests \
|
2007-06-15 15:25:50 +00:00
|
|
|
testaccel testactions testassistant \
|
2009-07-10 11:42:46 +00:00
|
|
|
testbbox testbuttons \
|
|
|
|
testcairo testcalendar testcellrenderertext testclientmessage testcombo testcombochange \
|
2003-11-15 20:35:55 +00:00
|
|
|
testdnd \
|
2009-07-10 11:42:46 +00:00
|
|
|
testellipsise testentrycompletion testentryicons \
|
2007-09-17 19:53:54 +00:00
|
|
|
testfilechooser testfilechooserbutton testframe \
|
2007-06-15 15:25:50 +00:00
|
|
|
testgrouping testgtk \
|
2006-01-06 12:05:28 +00:00
|
|
|
testicontheme testiconview testimage testinput \
|
2008-08-01 14:43:22 +00:00
|
|
|
testmenus testmountoperation testmenubars testmerge testmultidisplay testmultiscreen \
|
2007-06-15 15:25:50 +00:00
|
|
|
testnouiprint testnotebookdnd \
|
2009-07-10 11:42:46 +00:00
|
|
|
testoffscreen testorientable \
|
2007-06-15 15:25:50 +00:00
|
|
|
testprint \
|
|
|
|
testrecentchooser testrecentchoosermenu testrgb testrichtext \
|
2009-07-10 11:42:46 +00:00
|
|
|
testscale testselection testspinbutton \
|
2008-08-01 14:43:22 +00:00
|
|
|
testtext testtoolbar testtooltips \
|
|
|
|
testtreecolumns testtreecolumnsizing testtreeedit testtreeflow testtreefocus \
|
2007-06-15 15:25:50 +00:00
|
|
|
testtreemodel testtreesort testtreeview treestoretest \
|
2005-09-18 12:28:42 +00:00
|
|
|
testsocket testsocket_child teststatusicon \
|
2009-07-10 11:42:46 +00:00
|
|
|
testthreads testvolumebutton testwindows testxinerama \
|
2008-08-01 14:43:22 +00:00
|
|
|
simple
|
2001-05-06 14:07:49 +00:00
|
|
|
|
2004-03-07 13:40:19 +00:00
|
|
|
# syntax error : illegal character '-' in macro
|
|
|
|
#stresstest-toolbar
|
|
|
|
|
2001-05-06 14:07:49 +00:00
|
|
|
|
|
|
|
all-test-apps:
|
2006-01-06 12:05:28 +00:00
|
|
|
@for %d in ($(TESTAPPS)) do @nmake -nologo -f makefile.msc one-test-app THIS=%d
|
2001-05-06 14:07:49 +00:00
|
|
|
|
|
|
|
one-test-app:
|
|
|
|
@nmake -nologo -f makefile.msc $(THIS).exe TESTAPP=$(THIS) EXTRA_$(THIS)=1
|
|
|
|
|
|
|
|
!ELSE
|
|
|
|
|
2006-01-06 12:05:28 +00:00
|
|
|
EXTRA_OBJETCS = prop-editor.obj
|
|
|
|
|
2008-05-23 20:29:27 +00:00
|
|
|
!IFDEF EXTRA_buildertest
|
|
|
|
EXTRA_LIBS = $(ATK_LIBS)
|
|
|
|
!ENDIF
|
2007-06-15 15:25:50 +00:00
|
|
|
|
2009-07-10 11:42:46 +00:00
|
|
|
!IFDEF EXTRA_testoffscreen
|
|
|
|
EXTRA_OBJETCS = gtkoffscreenbox.obj
|
|
|
|
!ENDIF
|
|
|
|
|
2007-06-15 15:25:50 +00:00
|
|
|
!IFDEF EXTRA_testprint
|
|
|
|
EXTRA_OBJETCS = testprintfileoperation.obj
|
|
|
|
EXTRA_LIBS = $(PANGOCAIRO_LIBS)
|
2006-01-06 12:05:28 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2007-06-15 15:25:50 +00:00
|
|
|
!IFDEF EXTRA_testnouiprint
|
|
|
|
EXTRA_LIBS = $(PANGOCAIRO_LIBS)
|
2001-05-06 14:07:49 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2007-06-15 15:25:50 +00:00
|
|
|
!IFDEF EXTRA_testfilechooser
|
|
|
|
EXTRA_LIBS = gdi32.lib user32.lib shell32.lib
|
2004-08-06 19:20:42 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2005-07-30 18:53:44 +00:00
|
|
|
!IFDEF EXTRA_testsocket
|
|
|
|
EXTRA_OBJETCS = testsocket_common.obj
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF EXTRA_testsocket_child
|
|
|
|
EXTRA_OBJETCS = testsocket_common.obj
|
|
|
|
!ENDIF
|
|
|
|
|
2008-08-01 14:43:22 +00:00
|
|
|
$(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) \
|
2007-06-15 15:25:50 +00:00
|
|
|
$(PANGO_LIBS) $(GLIB_LIBS) $(CAIRO_LIBS) $(EXTRA_LIBS) $(LDFLAGS)
|
2001-05-06 14:07:49 +00:00
|
|
|
|
|
|
|
$(TESTAPP).obj : $(TESTAPP).c
|
|
|
|
$(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"$(TESTAPP)\" $(TESTAPP).c
|
|
|
|
|
2001-11-02 15:39:04 +00:00
|
|
|
!ENDIF
|