Code

Add code to generate and display an SSL-connection event with a padlock
[inkscape.git] / src / Makefile.mingw
1 ###########################################################################
2 #  $Id$
3 ###########################################################################
4 # Makefile for building with MinGW
5 ###########################################################################
7 include ../Makefile.mingw.common
9 all: generated outputs
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 ###################################
33 include ./make.ofiles
34 include ./make.dep
36 INC += $(INCLUDEPATH)
38 OBJ = $(OBJECTS)
42 ###################################
43 # O U T P U T S
44 ###################################
46 outputs: inkscape.exe inkview.exe
49 RES=inkres.o
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
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
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
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
71 inkres.o: inkscape.rc
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
80         perl makedef.pl
81         
82 libinkscape.a: $(OBJ)
83         -$(RM) libinkscape.a
84         ar crv libinkscape.a $(OBJ)
85         $(RANLIB) libinkscape.a
87 inkscape.la: inkscape.dll
91 ###################################
92 # P L U G I N S
93 ###################################
95 .o.dll: $<
96         $(DLLWRAP) --def=plugin.def --driver-name=g++ \
97         -o $@ $< $(LIBS)
99 PLUGS = extension/plugin/gimpgrad.dll
101 plugins: $(PLUGS)
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 $@
111 ###################################
112 # C L E A N U P
113 ###################################
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