source: trunk/third/gtk-engines/makefile.cygwin @ 18286

Revision 18286, 2.1 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18285, which included commits to RCS files with non-trunk default branches.
Line 
1## Makefile for building the gtk theme engines with gcc -mno-cygwin
2## Use: make -f makefile.cygwin
3
4# Where the themes will be installed. This is where gtk+ looks for them
5# by default (replace /windows with your Windows directory)
6#THEMES = /windows/gtk+/themes
7# This is what I use as installation target, from where the installer-builder
8# will pick it up.
9THEMES = /src/themes
10
11################################################################
12
13# Nothing much configurable below
14
15ifndef THEME
16
17# This part is used from this directory
18
19SUBDIRS = metal notif redmond95 pixmap
20
21all :
22        for d in $(SUBDIRS); do $(MAKE) -f makefile.cygwin theme-all DIR=$$d; done
23
24install :
25        for d in $(SUBDIRS); do $(MAKE) -f makefile.cygwin theme-install DIR=$$d; done
26
27clean :
28        for d in $(SUBDIRS); do $(MAKE) -f makefile.cygwin theme-clean DIR=$$d; done
29
30ifdef DIR
31
32theme-all :
33        cd $(DIR); $(MAKE) -f ../makefile.cygwin THEME=$(DIR) this_is_$(DIR)=1 all
34
35theme-install :
36        cd $(DIR); $(MAKE) -f ../makefile.cygwin THEME=$(DIR) install
37
38theme-clean :
39        cd $(DIR); $(MAKE) -f ../makefile.cygwin THEME=$(DIR) clean
40
41endif
42
43
44else
45
46# This part is included by makefiles below
47
48GTK_VER = 1.3
49GLIB_VER = 1.3
50
51OPTIMIZE = -O
52
53CC = gcc -mno-cygwin -mpentium -fnative-struct
54
55INSTALL = install
56
57GTK = ../../gtk+
58GLIB = ../../glib
59GDK_IMLIB = ../../imlib/gdk_imlib
60
61ENGINES = $(THEMES)/engines
62ENGGTK = $(THEMES)/$(THEME)/gtk
63
64CFLAGS = -I. -I$(GLIB) -I$(GLIB)/gmodule -I$(GTK)/gdk -I$(GTK) -I$(GDK_IMLIB)
65
66ifdef this_is_pixmap
67EXTRALIBS = -L $(GDK_IMLIB) -lgdk_imlib
68endif
69
70ifndef OBJECTS
71OBJECTS = \
72        $(THEME)_theme_draw.o \
73        $(THEME)_theme_main.o
74endif
75
76all : \
77        $(THEME).dll
78
79install : all
80        -mkdir $(ENGINES)
81        $(INSTALL) $(THEME).dll $(ENGINES)
82        -mkdir $(THEMES)/$(THEME)
83        -mkdir $(THEMES)/$(THEME)/gtk
84        -$(INSTALL) Theme/gtk/*.png $(ENGGTK)
85        $(INSTALL) Theme/gtk/gtkrc $(ENGGTK)
86
87$(THEME).dll : $(OBJECTS)
88        $(GLIB)/build-dll $(THEME) - ../engine.def $(OBJECTS) -L $(GTK)/gtk -lgtk-$(GTK_VER) -L $(GTK)/gdk -lgdk-$(GTK_VER) $(EXTRALIBS) -L $(GLIB) -lglib-$(GLIB_VER) -lgmodule-$(GLIB_VER) -lgdi32 -luser32 $(LDFLAGS)
89
90.c.o :
91        $(CC) $(CFLAGS) -c $<
92
93clean:
94        -rm *.dll *.o
95
96endif
Note: See TracBrowser for help on using the repository browser.