Code

* Remove unused variables
[inkscape.git] / src / pedro / Makefile.mingw
1 ###########################################################################
2 #
3 #
4 #  Makefile for the Pedro mini-XMPP client
5
6 #  Authors:
7 #    Bob Jamison
8
9 #  Copyright (C) 2005-2006 Bob Jamison
10
11 #   This library is free software; you can redistribute it and/or
12 #   modify it under the terms of the GNU Lesser General Public
13 #   License as published by the Free Software Foundation; either
14 #   version 2.1 of the License, or (at your option) any later version.
15
16 #   This library is distributed in the hope that it will be useful,
17 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
18 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19 #   Lesser General Public License for more details.
20
21 #   You should have received a copy of the GNU Lesser General Public
22 #   License along with this library; if not, write to the Free Software
23 #   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
24 #
25 #
26 ##########################################################################
27 # FILE SEPARATORS
28 # $(S) will be set to one of these
29 ##########################################################################
30 BSLASH := \\#
31 FSLASH := /
33 ##########################################################################
34 # SENSE ARCHITECTURE
35 ##########################################################################
36 ifdef ComSpec
37 ARCH=win32
38 else
39 ARCH=xlib
40 endif
42 ##########################################################################
43 # WIN32  SETTINGS
44 ##########################################################################
45 ifeq ($(ARCH),win32)
47 #######  Where is your GTK directory?
48 GTK=c:/gtk28
50 ####### Same thing, DOS style
51 GTKDOS=c:\gtk28
53 #SSL=openssl-0.9.8a
54 SSL=$(GTK)
56 CFLAGS = -g -Wall -DHAVE_SSL
57 INC  = -I. -I$(GTK)/include -I$(SSL)/include
58 LIBS = -mwindows -L$(GTK)/lib -L$(SSL) -lssl -lcrypto -lgdi32 -lws2_32
59 RM = del
60 CP = copy
61 S = $(BSLASH)
64 all: test.exe pedro.exe
66 GTKINC = -DGLIBMM_DLL \
67 -I$(GTK)/include/glibmm-2.4 -I$(GTK)/lib/glibmm-2.4/include \
68 -I$(GTK)/include/gtkmm-2.4  -I$(GTK)/lib/gtkmm-2.4/include \
69 -I$(GTK)/include/gdkmm-2.4  -I$(GTK)/lib/gdkmm-2.4/include \
70 -I$(GTK)/include/pangomm-1.4 \
71 -I$(GTK)/include/atkmm-1.6  -I$(GTK)/include/cairo  \
72 -I$(GTK)/include/sigc++-2.0 -I$(GTK)/lib/sigc++-2.0/include \
73 -I$(GTK)/include/gtk-2.0    -I$(GTK)/lib/gtk-2.0/include \
74 -I$(GTK)/include/atk-1.0    -I$(GTK)/include/pango-1.0 \
75 -I$(GTK)/include/glib-2.0   -I$(GTK)/lib/glib-2.0/include
78 ####### Our Gtk libs
79 GTKLIBS = -L$(GTK)/lib -lloudmouth-1 \
80 -lgtkmm-2.4 -lgdkmm-2.4 -lglibmm-2.4 \
81 -latkmm-1.6 -lpangomm-1.4 -lsigc-2.0 \
82 -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 \
83 -lgdk_pixbuf-2.0 -lm -lpangoft2-1.0 -lpangowin32-1.0 -lpango-1.0 \
84 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0
86 endif
89 ##########################################################################
90 # XLIB  SETTINGS
91 ##########################################################################
92 ifeq ($(ARCH),xlib)
94 CFLAGS = -g -Wall -DHAVE_SSL -DHAVE_PTHREAD_H
95 XINC = -I/usr/X11R6/include
96 XLIB = -L/usr/X11R6/lib -lXrender -lX11
97 INC  = -I. -I.. $(XINC)
98 LIBS = $(XLIB) -lpthread -lssl
99 RM = rm -rf
100 CP = cp
101 S = $(FSLASH)
102 all: test pedro
104 GTKINC  += `pkg-config gtkmm-2.4 --cflags`
105 GTKLIBS += `pkg-config gtkmm-2.4 --libs`
107 endif
111 OBJ = \
112 pedrodom.o \
113 pedroxmpp.o
115 GUIOBJ = \
116 pedrogui.o \
117 pedromain.o
119 TESTOBJ = \
120 work/test.o     \
121 work/filesend.o \
122 work/filerec.o  \
123 work/groupchat.o
125 test.exe: libpedro.a work/test.o
126         $(CXX) -o $@ work/test.o libpedro.a $(LIBS)
127 test: libpedro.a work/test.o
128         $(CXX) -o $@ work/test.o libpedro.a $(LIBS)
129         
130 filesend.exe: libpedro.a work/filesend.o
131         $(CXX) -o $@ work/filesend.o libpedro.a $(LIBS)
132 filesend: libpedro.a work/filesend.o
133         $(CXX) -o $@ work/filesend.o libpedro.a $(LIBS)
135 filerec.exe: libpedro.a work/filerec.o
136         $(CXX) -o $@ work/filerec.o libpedro.a $(LIBS)
137 filerec: libpedro.a work/filerec.o
138         $(CXX) -o $@ work/filerec.o libpedro.a $(LIBS)
140 groupchat.exe: libpedro.a work/groupchat.o
141         $(CXX) -o $@ work/groupchat.o libpedro.a $(LIBS)
142 groupchat: libpedro.a work/groupchat.o
143         $(CXX) -o $@ work/groupchat.o libpedro.a $(LIBS)
145 pedro.exe: libpedro.a pedromain.o pedrogui.o
146         $(CXX) -o $@ pedromain.o pedrogui.o libpedro.a $(GTKLIBS) $(LIBS)
147 pedro: libpedro.a pedromain.o pedrogui.o
148         $(CXX) -o $@ pedromain.o pedrogui.o libpedro.a $(GTKLIBS) $(LIBS)
151 libpedro.a: $(OBJ)
152         ar crv libpedro.a $(OBJ)
154 pedromain.o: pedromain.cpp
155         $(CXX) $(CFLAGS) $(INC) $(GTKINC) -c -o $@ $<
156         
157 pedrogui.o: pedrogui.cpp pedrogui.h
158         $(CXX) $(CFLAGS) $(INC) $(GTKINC) -c -o $@ $<
160 .cpp.o:
161         $(CXX) $(CFLAGS) $(INC) -c -o $@ $<
163 clean:
164         $(foreach a, $(OBJ), $(shell $(RM) $(subst /,$(S), $(a))))
165         $(foreach a, $(GUIOBJ), $(shell $(RM) $(subst /,$(S), $(a))))
166         $(foreach a, $(TESTOBJ), $(shell $(RM) $(subst /,$(S), $(a))))
167         -$(RM) *.a
168         -$(RM) test
169         -$(RM) test.exe
170         -$(RM) filesend
171         -$(RM) filesend.exe
172         -$(RM) filerec
173         -$(RM) filerec.exe
174         -$(RM) groupchat
175         -$(RM) groupchat.exe
176         -$(RM) pedro
177         -$(RM) pedro.exe
178         -$(RM) core.*
180 ###########################################################################
181 # E N D    O F    F I L E
182 ###########################################################################