summaryrefslogtreecommitdiffstats
path: root/src/pedro/Makefile.mingw
diff options
context:
space:
mode:
authorBob Jamison <ishmalius@gmail.com>2006-05-15 15:06:21 +0000
committerishmal <ishmal@users.sourceforge.net>2006-05-15 15:06:21 +0000
commit8325c242bbc39df39b5b2260d3e2aac289d8a930 (patch)
tree9a910be0c78883d9beec6cece07f7f800e0713ae /src/pedro/Makefile.mingw
parentfix potential (though currently impossible) crash when spatial mode is used w... (diff)
downloadinkscape-8325c242bbc39df39b5b2260d3e2aac289d8a930.tar.gz
inkscape-8325c242bbc39df39b5b2260d3e2aac289d8a930.zip
Move from the jabber_whiteboard directory to its own, so that it can be updated in parallel.
(bzr r846)
Diffstat (limited to '')
-rw-r--r--src/pedro/Makefile.mingw183
1 files changed, 183 insertions, 0 deletions
diff --git a/src/pedro/Makefile.mingw b/src/pedro/Makefile.mingw
new file mode 100644
index 000000000..693dfca89
--- /dev/null
+++ b/src/pedro/Makefile.mingw
@@ -0,0 +1,183 @@
+###########################################################################
+#
+#
+# Makefile for the Pedro mini-XMPP client
+#
+# Authors:
+# Bob Jamison
+#
+# Copyright (C) 2005-2006 Bob Jamison
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+#
+##########################################################################
+# FILE SEPARATORS
+# $(S) will be set to one of these
+##########################################################################
+BSLASH := \\#
+FSLASH := /
+
+##########################################################################
+# SENSE ARCHITECTURE
+##########################################################################
+ifdef ComSpec
+ARCH=win32
+else
+ARCH=xlib
+endif
+
+##########################################################################
+# WIN32 SETTINGS
+##########################################################################
+ifeq ($(ARCH),win32)
+
+####### Where is your GTK directory?
+GTK=c:/gtk28
+
+####### Same thing, DOS style
+GTKDOS=c:\gtk28
+
+#SSL=openssl-0.9.8a
+SSL=$(GTK)
+
+CFLAGS = -g -Wall -DHAVE_SSL
+INC = -I. -I$(GTK)/include -I$(SSL)/include
+LIBS = -mwindows -L$(GTK)/lib -L$(SSL) -lssl -lcrypto -lgdi32 -lws2_32
+RM = del
+CP = copy
+S = $(BSLASH)
+
+
+all: test.exe pedro.exe
+
+GTKINC = -DGLIBMM_DLL \
+-I$(GTK)/include/glibmm-2.4 -I$(GTK)/lib/glibmm-2.4/include \
+-I$(GTK)/include/gtkmm-2.4 -I$(GTK)/lib/gtkmm-2.4/include \
+-I$(GTK)/include/gdkmm-2.4 -I$(GTK)/lib/gdkmm-2.4/include \
+-I$(GTK)/include/pangomm-1.4 \
+-I$(GTK)/include/atkmm-1.6 -I$(GTK)/include/cairo \
+-I$(GTK)/include/sigc++-2.0 -I$(GTK)/lib/sigc++-2.0/include \
+-I$(GTK)/include/gtk-2.0 -I$(GTK)/lib/gtk-2.0/include \
+-I$(GTK)/include/atk-1.0 -I$(GTK)/include/pango-1.0 \
+-I$(GTK)/include/glib-2.0 -I$(GTK)/lib/glib-2.0/include
+
+
+####### Our Gtk libs
+GTKLIBS = -L$(GTK)/lib -lloudmouth-1 \
+-lgtkmm-2.4 -lgdkmm-2.4 -lglibmm-2.4 \
+-latkmm-1.6 -lpangomm-1.4 -lsigc-2.0 \
+-lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 \
+-lgdk_pixbuf-2.0 -lm -lpangoft2-1.0 -lpangowin32-1.0 -lpango-1.0 \
+-lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0
+
+endif
+
+
+##########################################################################
+# XLIB SETTINGS
+##########################################################################
+ifeq ($(ARCH),xlib)
+
+CFLAGS = -g -Wall -DHAVE_SSL -DHAVE_PTHREAD_H
+XINC = -I/usr/X11R6/include
+XLIB = -L/usr/X11R6/lib -lXrender -lX11
+INC = -I. -I.. $(XINC)
+LIBS = $(XLIB) -lpthread -lssl
+RM = rm -rf
+CP = cp
+S = $(FSLASH)
+all: test pedro
+
+GTKINC += `pkg-config gtkmm-2.4 --cflags`
+GTKLIBS += `pkg-config gtkmm-2.4 --libs`
+
+endif
+
+
+
+OBJ = \
+pedrodom.o \
+pedroxmpp.o
+
+GUIOBJ = \
+pedrogui.o \
+pedromain.o
+
+TESTOBJ = \
+work/test.o \
+work/filesend.o \
+work/filerec.o \
+work/groupchat.o
+
+test.exe: libpedro.a work/test.o
+ $(CXX) -o $@ work/test.o libpedro.a $(LIBS)
+test: libpedro.a work/test.o
+ $(CXX) -o $@ work/test.o libpedro.a $(LIBS)
+
+filesend.exe: libpedro.a work/filesend.o
+ $(CXX) -o $@ work/filesend.o libpedro.a $(LIBS)
+filesend: libpedro.a work/filesend.o
+ $(CXX) -o $@ work/filesend.o libpedro.a $(LIBS)
+
+filerec.exe: libpedro.a work/filerec.o
+ $(CXX) -o $@ work/filerec.o libpedro.a $(LIBS)
+filerec: libpedro.a work/filerec.o
+ $(CXX) -o $@ work/filerec.o libpedro.a $(LIBS)
+
+groupchat.exe: libpedro.a work/groupchat.o
+ $(CXX) -o $@ work/groupchat.o libpedro.a $(LIBS)
+groupchat: libpedro.a work/groupchat.o
+ $(CXX) -o $@ work/groupchat.o libpedro.a $(LIBS)
+
+pedro.exe: libpedro.a pedromain.o pedrogui.o
+ $(CXX) -o $@ pedromain.o pedrogui.o libpedro.a $(GTKLIBS) $(LIBS)
+pedro: libpedro.a pedromain.o pedrogui.o
+ $(CXX) -o $@ pedromain.o pedrogui.o libpedro.a $(GTKLIBS) $(LIBS)
+
+
+libpedro.a: $(OBJ)
+ ar crv libpedro.a $(OBJ)
+
+pedromain.o: pedromain.cpp
+ $(CXX) $(CFLAGS) $(INC) $(GTKINC) -c -o $@ $<
+
+pedrogui.o: pedrogui.cpp pedrogui.h
+ $(CXX) $(CFLAGS) $(INC) $(GTKINC) -c -o $@ $<
+
+.cpp.o:
+ $(CXX) $(CFLAGS) $(INC) -c -o $@ $<
+
+clean:
+ $(foreach a, $(OBJ), $(shell $(RM) $(subst /,$(S), $(a))))
+ $(foreach a, $(GUIOBJ), $(shell $(RM) $(subst /,$(S), $(a))))
+ $(foreach a, $(TESTOBJ), $(shell $(RM) $(subst /,$(S), $(a))))
+ -$(RM) *.a
+ -$(RM) test
+ -$(RM) test.exe
+ -$(RM) filesend
+ -$(RM) filesend.exe
+ -$(RM) filerec
+ -$(RM) filerec.exe
+ -$(RM) groupchat
+ -$(RM) groupchat.exe
+ -$(RM) pedro
+ -$(RM) pedro.exe
+ -$(RM) core.*
+
+###########################################################################
+# E N D O F F I L E
+###########################################################################
+