1
###########################################################################
2
# $Id: Makefile.mingw 11250 2006-04-06 21:58:43Z theadib $
3
###########################################################################
4
# Makefile for building with MinGW
5
###########################################################################
7
include ../Makefile.mingw.common
11
###################################
12
# G E N E R A T E D F I L E S
13
###################################
15
generated: helper/sp-marshal.h helper/sp-marshal.cpp inkscape_version.h
19
helper/sp-marshal.h: helper/sp-marshal.h.mingw
20
$(CP) $(subst /,$(S), $<) $(subst /,$(S), $@)
22
helper/sp-marshal.cpp: helper/sp-marshal.cpp.mingw
23
$(CP) $(subst /,$(S), $<) $(subst /,$(S), $@)
25
inkscape_version.h: inkscape_version.h.mingw
26
$(CP) inkscape_version.h.mingw inkscape_version.h
29
###################################
30
# D E P E N D E N C I E S
31
###################################
42
###################################
44
###################################
46
outputs: inkscape.exe inkview.exe
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
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)
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
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)
72
$(WINDRES) inkscape.rc $(RES)
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)
79
inkscape.def: libinkscape.a
84
ar crv libinkscape.a $(OBJ)
85
$(RANLIB) libinkscape.a
87
inkscape.la: inkscape.dll
91
###################################
93
###################################
96
$(DLLWRAP) --def=plugin.def --driver-name=g++ \
99
PLUGS = extension/plugin/gimpgrad.dll
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
111
###################################
113
###################################
116
$(foreach a, $(OBJ), $(shell $(RM) $(subst /,$(S), $(a))))
117
-$(RM) main.o winmain.o inkview.o
122
-$(RM) extension$(S)plugin$(S)*.o
123
-$(RM) extension$(S)plugin$(S)*.dll
124
-$(RM) inkscape.exe inkview.exe inkscape.dbg inkview.dbg