summaryrefslogtreecommitdiffstats
path: root/src/Makefile.mingw.old
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-01-16 02:36:01 +0000
committermental <mental@users.sourceforge.net>2006-01-16 02:36:01 +0000
commit179fa413b047bede6e32109e2ce82437c5fb8d34 (patch)
treea5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /src/Makefile.mingw.old
downloadinkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz
inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'src/Makefile.mingw.old')
-rw-r--r--src/Makefile.mingw.old53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/Makefile.mingw.old b/src/Makefile.mingw.old
new file mode 100644
index 000000000..1483746c8
--- /dev/null
+++ b/src/Makefile.mingw.old
@@ -0,0 +1,53 @@
+###########################################################################
+# $Id$
+###########################################################################
+# Makefile for building with MinGW
+###########################################################################
+
+include ../Makefile.mingw.common
+
+
+
+#Check for 'generated' files
+all: helper/sp-marshal.h helper/sp-marshal.cpp inkscape_version.h inkscape.exe
+
+helper/sp-marshal.h: helper/sp-marshal.h.mingw
+ $(CP) $(subst /,$(S), $<) $(subst /,$(S), $@)
+
+helper/sp-marshal.cpp: helper/sp-marshal.cpp.mingw
+ $(CP) $(subst /,$(S), $<) $(subst /,$(S), $@)
+
+inkscape_version.h: inkscape_version.h.mingw
+ $(CP) inkscape_version.h.mingw inkscape_version.h
+
+include ./make.ofiles
+include ./make.dep
+
+INC += $(INCLUDEPATH)
+
+OBJ = $(OBJECTS)
+
+RES=inkres.o
+
+inkscape.exe: libinkscape.a main.o winmain.o $(RES)
+ $(CXX) -o inkscape.exe main.o winmain.o $(RES) libinkscape.a $(LIBS)
+# strip inkscape.exe
+
+inkview.exe: libinkscape.a inkview.o $(RES)
+ $(CXX) -o inkview.exe inkview.o $(RES) libinkscape.a $(LIBS)
+ strip inkview.exe
+
+inkres.o: inkscape.rc
+ $(WINDRES) inkscape.rc $(RES)
+
+libinkscape.a: $(OBJ)
+ $(RM) libinkscape.a
+ ar crv libinkscape.a $(OBJ)
+ $(RANLIB) libinkscape.a
+
+
+clean:
+ $(foreach a, $(OBJ), $(shell $(RM) $(subst /,$(S), $(a))))
+ $(RM) *.a
+
+