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 = \
|
2006-01-06 12:05:28 +00:00
|
|
|
autotestfilechooser floatingtest \
|
|
|
|
testaccel testactions \
|
|
|
|
testcairo testcalendar testcellrenderertext testcombo testcombochange \
|
2003-11-15 20:35:55 +00:00
|
|
|
testdnd \
|
2006-01-06 12:05:28 +00:00
|
|
|
testellipsise testentrycompletion \
|
|
|
|
testfilechooser testfilechooserbutton \
|
2003-11-15 20:35:55 +00:00
|
|
|
testgtk \
|
2006-01-06 12:05:28 +00:00
|
|
|
testicontheme testiconview testimage testinput \
|
|
|
|
testmenus testmenubars testmerge testmultidisplay testmultiscreen \
|
2006-04-07 17:18:08 +00:00
|
|
|
testnotebookdnd \
|
|
|
|
testrecentchooser testrgb \
|
2004-03-14 16:02:33 +00:00
|
|
|
testselection testspinbutton \
|
2003-11-15 20:35:55 +00:00
|
|
|
testtext testtextbuffer testtoolbar \
|
|
|
|
testtreecolumns testtreeedit testtreeflow testtreefocus \
|
|
|
|
testtreesort testtreeview treestoretest \
|
2005-09-18 12:28:42 +00:00
|
|
|
testsocket testsocket_child teststatusicon \
|
2004-03-07 13:40:19 +00:00
|
|
|
testthreads testxinerama \
|
2003-11-15 20:35:55 +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
|
|
|
|
|
2005-02-07 20:22:05 +00:00
|
|
|
!IFDEF EXTRA_testcairo
|
|
|
|
EXTRA_LIBS = $(CAIRO_LIBS)
|
|
|
|
!ENDIF
|
|
|
|
|
2006-01-06 12:05:28 +00:00
|
|
|
!IFDEF EXTRA_testentrycompletion
|
|
|
|
EXTRA_OBJETCS = prop-editor.obj
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF EXTRA_testfilechooserbutton
|
|
|
|
EXTRA_OBJETCS = prop-editor.obj
|
|
|
|
!ENDIF
|
|
|
|
|
2001-05-06 14:07:49 +00:00
|
|
|
!IFDEF EXTRA_testgtk
|
2005-07-03 15:47:42 +00:00
|
|
|
EXTRA_LIBS = $(CAIRO_LIBS)
|
2001-05-06 14:07:49 +00:00
|
|
|
EXTRA_OBJETCS = prop-editor.obj
|
|
|
|
!ENDIF
|
|
|
|
|
2004-08-06 19:20:42 +00:00
|
|
|
!IFDEF EXTRA_testiconview
|
|
|
|
EXTRA_OBJETCS = prop-editor.obj
|
|
|
|
!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
|
|
|
|
|
2006-04-07 17:18:08 +00:00
|
|
|
!IFDEF EXTRA_testrecentchooser
|
|
|
|
EXTRA_OBJETCS = prop-editor.obj
|
|
|
|
!ENDIF
|
|
|
|
|
2001-05-06 14:07:49 +00:00
|
|
|
!IFDEF EXTRA_testtreeview
|
|
|
|
EXTRA_OBJETCS = prop-editor.obj
|
|
|
|
!ENDIF
|
|
|
|
|
2001-05-25 15:43:53 +00:00
|
|
|
!IFDEF EXTRA_testtext
|
|
|
|
EXTRA_OBJETCS = prop-editor.obj
|
|
|
|
!ENDIF
|
|
|
|
|
2003-11-15 20:35:55 +00:00
|
|
|
!IFDEF EXTRA_testtoolbar
|
|
|
|
EXTRA_OBJETCS = prop-editor.obj
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF EXTRA_testfilechooser
|
|
|
|
EXTRA_OBJETCS = prop-editor.obj
|
|
|
|
EXTRA_LIBS = gdi32.lib user32.lib shell32.lib
|
|
|
|
!ENDIF
|
|
|
|
|
2003-07-20 15:50:14 +00:00
|
|
|
$(TESTAPP).exe : ../gtk/gtk-win32-$(GTK_VER).lib $(TESTAPP).obj
|
2003-11-15 20:35:55 +00:00
|
|
|
$(CC) $(CFLAGS) $(TESTAPP).obj $(EXTRA_OBJETCS) $(GTK_LIBS) $(GDK_LIBS) $(GDK_PIXBUF_LIBS) $(PANGO_LIBS) $(GLIB_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
|