1 ###########################################################################
2 # $Id$
3 ###########################################################################
4 # Makefile for building with MinGW
5 ###########################################################################
7 include ../Makefile.mingw.common
11 #Check for 'generated' files
12 all: helper/sp-marshal.h helper/sp-marshal.cpp inkscape_version.h inkscape.exe
14 helper/sp-marshal.h: helper/sp-marshal.h.mingw
15 $(CP) $(subst /,$(S), $<) $(subst /,$(S), $@)
17 helper/sp-marshal.cpp: helper/sp-marshal.cpp.mingw
18 $(CP) $(subst /,$(S), $<) $(subst /,$(S), $@)
20 inkscape_version.h: inkscape_version.h.mingw
21 $(CP) inkscape_version.h.mingw inkscape_version.h
23 include ./make.ofiles
24 include ./make.dep
26 INC += $(INCLUDEPATH)
28 OBJ = $(OBJECTS)
30 RES=inkres.o
32 inkscape.exe: libinkscape.a main.o winmain.o $(RES)
33 $(CXX) -o inkscape.exe main.o winmain.o $(RES) libinkscape.a $(LIBS)
34 # strip inkscape.exe
36 inkview.exe: libinkscape.a inkview.o $(RES)
37 $(CXX) -o inkview.exe inkview.o $(RES) libinkscape.a $(LIBS)
38 strip inkview.exe
40 inkres.o: inkscape.rc
41 $(WINDRES) inkscape.rc $(RES)
43 libinkscape.a: $(OBJ)
44 $(RM) libinkscape.a
45 ar crv libinkscape.a $(OBJ)
46 $(RANLIB) libinkscape.a
49 clean:
50 $(foreach a, $(OBJ), $(shell $(RM) $(subst /,$(S), $(a))))
51 $(RM) *.a