]> Pileus Git - ~andy/gtk/blob - tests/makefile.msc
gtk/gtkcombobox.c : prototype cell_view_sync_cells() before first usage
[~andy/gtk] / tests / makefile.msc
1 ## Makefile for building the gtk test apps with Microsoft C
2 ## Use: nmake -f makefile.msc
3
4 ## There is no install target, you have to decide where and 
5 ## how to install for yourself.
6
7 TOP = ..\..
8 !INCLUDE $(TOP)/glib/build/win32/make.msc
9
10 ################################################################
11
12 # Possibly override versions from build/win32/module.defs
13 GTK_VER = 2.0
14 GDK_PIXBUF_VER = 2.0
15
16 GDK_LIBS = ../gdk/gdk-win32-$(GTK_VER).lib
17 GTK_LIBS = ../gtk/gtk-win32-$(GTK_VER).lib
18 GDK_PIXBUF_LIBS = ../gdk-pixbuf/gdk_pixbuf-$(GDK_PIXBUF_VER).lib
19
20 INCLUDES = -I . -I .. -I ../gdk -I ../gdk-pixbuf -I ../gtk
21 DEPCFLAGS = $(PANGO_CFLAGS) $(GLIB_CFLAGS) $(LIBICONV_CFLAGS) $(INTL_CFLAGS) $(ATK_CFLAGS)
22 LDFLAGS = /link /machine:ix86 $(LINKDEBUG)
23 DEFINES = -DG_LOG_DOMAIN=\"GtkTest\" -DGTK_VERSION=\"$(GTK_VER)\"
24
25 TOUCH = copy makefile.msc+nul
26
27 !IFNDEF TESTAPP
28
29 all :   \
30         ..\config.h     \
31         prop-editor.obj \
32         all-test-apps
33
34 ..\config.h : ..\config.h.win32
35         copy ..\config.h.win32 ..\config.h
36
37
38 #
39 # Test programs:
40 #
41 TESTAPPS = \
42         testabi testactions \
43         testcalendar testcombo testcombochange \
44         testdnd \
45         testentrycompletion \
46         testfilechooser \
47         testgtk \
48         testicontheme testinput \
49         testmenus testmerge testmultidisplay testmultiscreen \
50         testrgb \
51         testselection testspinbutton \
52         testtext testtextbuffer testtoolbar \
53         testtreecolumns testtreeedit testtreeflow testtreefocus \
54         testtreesort testtreeview treestoretest \
55         testsocket testsocket_child \
56         testthreads testxinerama \
57         simple 
58
59 # syntax error : illegal character '-' in macro
60 #stresstest-toolbar
61
62
63 all-test-apps: 
64         for %d in ($(TESTAPPS)) do nmake -nologo -f makefile.msc one-test-app THIS=%d
65
66 one-test-app:
67         @nmake -nologo -f makefile.msc $(THIS).exe TESTAPP=$(THIS) EXTRA_$(THIS)=1
68
69 !ELSE
70
71 !IFDEF EXTRA_testgtk
72 EXTRA_OBJETCS = prop-editor.obj
73 !ENDIF
74
75 !IFDEF EXTRA_testtreeview
76 EXTRA_OBJETCS = prop-editor.obj
77 !ENDIF
78
79 !IFDEF EXTRA_testtext
80 EXTRA_OBJETCS = prop-editor.obj
81 !ENDIF
82
83 !IFDEF EXTRA_testtoolbar
84 EXTRA_OBJETCS = prop-editor.obj
85 !ENDIF
86
87 !IFDEF EXTRA_testfilechooser
88 EXTRA_OBJETCS = prop-editor.obj
89 EXTRA_LIBS = gdi32.lib user32.lib shell32.lib
90 !ENDIF
91
92 $(TESTAPP).exe : ../gtk/gtk-win32-$(GTK_VER).lib $(TESTAPP).obj
93         $(CC) $(CFLAGS) $(TESTAPP).obj $(EXTRA_OBJETCS) $(GTK_LIBS) $(GDK_LIBS) $(GDK_PIXBUF_LIBS) $(PANGO_LIBS) $(GLIB_LIBS) $(EXTRA_LIBS) $(LDFLAGS)
94
95 $(TESTAPP).obj : $(TESTAPP).c
96         $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"$(TESTAPP)\" $(TESTAPP).c
97
98 !ENDIF