File: makefile.msc

package info (click to toggle)
gtk-engines 0.12-8
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,940 kB
  • ctags: 394
  • sloc: ansic: 9,993; sh: 8,696; makefile: 211
file content (110 lines) | stat: -rw-r--r-- 2,326 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
## Makefile for building gtk-engines with Microsoft C
## Use: nmake -f makefile.msc 

# Where the themes will be installed. This is where gtk looks for them
# by default (replace C:\windows with your Windows directory)
#THEMES = C:\windows\gtk\themes
# This is what I use as installation target, from where the installer-builder
# will pick it up.
THEMES = \src\themes

################################################################

# Nothing much configurable below

!IFNDEF THEME

# This part is used from this directory

SUBDIRS = Metal Notif Redmond95 Pixmap

all :
	for %d in ($(SUBDIRS)) do nmake -nologo -f makefile.msc theme-all DIR=%d

install :
	for %d in ($(SUBDIRS)) do nmake -nologo -f makefile.msc theme-install DIR=%d

clean :
	for %d in ($(SUBDIRS)) do nmake -nologo -f makefile.msc theme-clean DIR=%d

!IFDEF DIR

theme-all :
	cd $(DIR)
	nmake -nologo -f ..\makefile.msc THEME=$(DIR) this_is_$(DIR)=1 all
	cd ..

theme-install :
	cd $(DIR)
	nmake -nologo -f ..\makefile.msc THEME=$(DIR) install
	cd ..

theme-clean :
	cd $(DIR)
	nmake -nologo -f ..\makefile.msc THEME=$(DIR) clean
	cd ..

!ENDIF


!ELSE

# This part is included by makefiles below

GTK_VER = 1.3
GLIB_VER = 1.3

# cl -? describes the options
CC = cl -G5 -GF -Ox -W3 -MD -nologo
LDFLAGS = /link
INSTALL = copy

GTK = ..\..\gtk+
GLIB = ..\..\glib
GDK_IMLIB = ..\..\imlib\gdk_imlib

ENGINES = $(THEMES)\engines
ENGGTK = $(THEMES)\$(THEME)\gtk

CFLAGS = -I. -I$(GLIB) -I$(GLIB)\gmodule -I$(GTK)\gdk\win32 -I$(GTK) -I$(GDK_IMLIB)

!IFDEF this_is_Pixmap
EXTRALIBS = $(GDK_IMLIB)\gdk_imlib.lib
!ENDIF

!IFNDEF OBJECTS
OBJECTS = \
	$(THEME)_theme_draw.obj \
	$(THEME)_theme_main.obj 
!ENDIF

all : \
	$(THEME).dll

install : all
	-mkdir $(ENGINES)
	$(INSTALL) $(THEME).dll $(ENGINES)
	-mkdir $(THEMES)\$(THEME)
	-mkdir $(THEMES)\$(THEME)\gtk
	$(INSTALL) Theme\gtk\*.png $(ENGGTK)
	$(INSTALL) Theme\gtk\gtkrc $(ENGGTK)

$(THEME).dll : $(OBJECTS)
	$(CC) $(CFLAGS) -LD -Fe$(THEME).dll $(OBJECTS) $(GTK)\gtk\gtk-$(GTK_VER).lib $(GTK)\gdk\win32\gdk-$(GTK_VER).lib $(EXTRALIBS) $(GLIB)\glib-$(GLIB_VER).lib $(GLIB)\gmodule-$(GLIB_VER).lib gdi32.lib user32.lib $(LDFLAGS) /def:..\engine.def

.c.obj :
	$(CC) $(CFLAGS) -GD -c $<

clean:
	del *.exe
	del *.obj
	del *.dll
	del *.lib
	del *.exp
	del *.err
	del *.map
	del *.sym
	del *.pdb
	del *.ilk

!ENDIF