~ubuntu-branches/debian/experimental/inkscape/experimental

« back to all changes in this revision

Viewing changes to src/Makefile.mingw

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-09-09 23:29:02 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080909232902-c50iujhk1w79u8e7
Tags: 0.46-2.1
* Non-maintainer upload.
* Add upstream patch fixing a crash in the open dialog
  in the zh_CN.utf8 locale. Closes: #487623.
  Thanks to Luca Bruno for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
###########################################################################
2
 
#  $Id: Makefile.mingw 11250 2006-04-06 21:58:43Z theadib $
3
 
###########################################################################
4
 
# Makefile for building with MinGW
5
 
###########################################################################
6
 
 
7
 
include ../Makefile.mingw.common
8
 
 
9
 
all: generated outputs
10
 
 
11
 
###################################
12
 
# G E N E R A T E D    F I L E S
13
 
###################################
14
 
 
15
 
generated: helper/sp-marshal.h helper/sp-marshal.cpp inkscape_version.h
16
 
 
17
 
 
18
 
 
19
 
helper/sp-marshal.h: helper/sp-marshal.h.mingw
20
 
        $(CP) $(subst /,$(S), $<) $(subst /,$(S), $@)
21
 
 
22
 
helper/sp-marshal.cpp: helper/sp-marshal.cpp.mingw
23
 
        $(CP) $(subst /,$(S), $<) $(subst /,$(S), $@)
24
 
 
25
 
inkscape_version.h: inkscape_version.h.mingw
26
 
        $(CP) inkscape_version.h.mingw inkscape_version.h
27
 
 
28
 
 
29
 
###################################
30
 
# D E P E N D E N C I E S
31
 
###################################
32
 
 
33
 
include ./make.ofiles
34
 
include ./make.dep
35
 
 
36
 
INC += $(INCLUDEPATH)
37
 
 
38
 
OBJ = $(OBJECTS)
39
 
 
40
 
 
41
 
 
42
 
###################################
43
 
# O U T P U T S
44
 
###################################
45
 
 
46
 
outputs: inkscape.exe inkview.exe
47
 
 
48
 
 
49
 
RES=inkres.o
50
 
 
51
 
inkscape.exe: libinkscape.a main.o winmain.o $(RES) 
52
 
        $(CXX) --export-dynamic -o inkscape.exe main.o winmain.o $(RES) libinkscape.a $(LIBS)
53
 
        $(OBJCOPY) --only-keep-debug inkscape.exe inkscape.dbg
54
 
        strip inkscape.exe
55
 
 
56
 
# DLL version.  we need to make this work
57
 
#inkscape.exe: inkscape.dll main.o winmain.o $(RES) 
58
 
#       $(CXX) -o inkscape.exe main.o winmain.o $(RES) inkscape.la $(LIBS)
59
 
#       strip inkscape.exe
60
 
 
61
 
inkview.exe: libinkscape.a inkview.o $(RES) 
62
 
        $(CXX) -o inkview.exe inkview.o $(RES) libinkscape.a $(LIBS)
63
 
        $(OBJCOPY) --only-keep-debug inkview.exe inkview.dbg
64
 
        strip inkview.exe
65
 
 
66
 
# DLL version.  we need to make this work
67
 
# inkview.exe: inkscape.dll inkview.o $(RES) 
68
 
#       $(CXX) -o inkview.exe inkview.o $(RES) libinkscapedll.a $(LIBS)
69
 
#       strip inkview.exe
70
 
 
71
 
inkres.o: inkscape.rc
72
 
        $(WINDRES) inkscape.rc $(RES)
73
 
 
74
 
inkscape.dll: libinkscape.a inkscape.def
75
 
        $(DLLWRAP) --output-lib=inkscape.la \
76
 
        --def=inkscape.def --driver-name=g++ \
77
 
        -o inkscape.dll libinkscape.a $(LIBS)
78
 
 
79
 
inkscape.def: libinkscape.a
80
 
        perl makedef.pl
81
 
        
82
 
libinkscape.a: $(OBJ)
83
 
        -$(RM) libinkscape.a
84
 
        ar crv libinkscape.a $(OBJ)
85
 
        $(RANLIB) libinkscape.a
86
 
 
87
 
inkscape.la: inkscape.dll
88
 
 
89
 
 
90
 
 
91
 
###################################
92
 
# P L U G I N S
93
 
###################################
94
 
 
95
 
.o.dll: $<
96
 
        $(DLLWRAP) --def=plugin.def --driver-name=g++ \
97
 
        -o $@ $< $(LIBS)
98
 
 
99
 
PLUGS = extension/plugin/gimpgrad.dll
100
 
 
101
 
plugins: $(PLUGS)
102
 
 
103
 
extension/plugin/gimpgrad.dll: extension/plugin/gimpgrad.o inkscape.la
104
 
        $(DLLWRAP) --def=plugin.def --driver-name=g++ \
105
 
        -dllname $@ $< inkscape.la $(LIBS) -lgc
106
 
        strip $@
107
 
 
108
 
 
109
 
 
110
 
 
111
 
###################################
112
 
# C L E A N U P
113
 
###################################
114
 
 
115
 
clean:
116
 
        $(foreach a, $(OBJ), $(shell $(RM) $(subst /,$(S), $(a))))
117
 
        -$(RM) main.o winmain.o inkview.o
118
 
        -$(RM) *.a
119
 
        -$(RM) *.la
120
 
        -$(RM) inkscape.def
121
 
        -$(RM) *.dll
122
 
        -$(RM) extension$(S)plugin$(S)*.o
123
 
        -$(RM) extension$(S)plugin$(S)*.dll
124
 
        -$(RM) inkscape.exe inkview.exe inkscape.dbg inkview.dbg
125
 
 
126