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
|
|
|
|
DEPCFLAGS = $(PANGO_CFLAGS) $(GLIB_CFLAGS) $(LIBICONV_CFLAGS) $(INTL_CFLAGS) $(ATK_CFLAGS)
|
|
|
|
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 \
|
|
|
|
all-test-apps
|
|
|
|
|
|
|
|
..\config.h : ..\config.h.win32
|
|
|
|
copy ..\config.h.win32 ..\config.h
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Test programs:
|
|
|
|
#
|
|
|
|
TESTAPPS = testcalendar testdnd testgtk testinput testrgb testselection \
|
|
|
|
testtext testtextbuffer testsocket testsocket_child \
|
2002-02-10 13:18:51 +00:00
|
|
|
testtreeedit testtreeflow \
|
2001-05-06 14:07:49 +00:00
|
|
|
testtreecolumns testtreefocus testtreesort testtreeview treestoretest \
|
|
|
|
testthreads simple
|
|
|
|
|
|
|
|
|
|
|
|
all-test-apps:
|
|
|
|
for %d in ($(TESTAPPS)) do nmake -nologo -f makefile.msc one-test-app THIS=%d
|
|
|
|
|
|
|
|
one-test-app:
|
|
|
|
@nmake -nologo -f makefile.msc $(THIS).exe TESTAPP=$(THIS) EXTRA_$(THIS)=1
|
|
|
|
|
|
|
|
!ELSE
|
|
|
|
|
|
|
|
!IFDEF EXTRA_testgtk
|
|
|
|
EXTRA_OBJETCS = prop-editor.obj
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!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-07-20 15:50:14 +00:00
|
|
|
$(TESTAPP).exe : ../gtk/gtk-win32-$(GTK_VER).lib $(TESTAPP).obj
|
2001-05-06 14:07:49 +00:00
|
|
|
$(CC) $(CFLAGS) $(TESTAPP).obj $(EXTRA_OBJETCS) $(GTK_LIBS) $(GDK_LIBS) $(GDK_PIXBUF_LIBS) $(PANGO_LIBS) $(GLIB_LIBS) $(LDFLAGS)
|
|
|
|
|
|
|
|
$(TESTAPP).obj : $(TESTAPP).c
|
|
|
|
$(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"$(TESTAPP)\" $(TESTAPP).c
|
|
|
|
|
2001-11-02 15:39:04 +00:00
|
|
|
!ENDIF
|