2
* $Id: Jmakefile,v 1.5 2005/05/07 13:19:24 graaff Exp $
4
* Copyright (c) 2003, Raphael Manfredi
6
* Jmakefile for the GTK1 GUI.
8
*----------------------------------------------------------------------
9
* This file is part of gtk-gnutella.
11
* gtk-gnutella is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2 of the License, or
14
* (at your option) any later version.
16
* gtk-gnutella 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
19
* GNU General Public License for more details.
21
* You should have received a copy of the GNU General Public License
22
* along with gtk-gnutella; if not, write to the Free Software
24
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
*----------------------------------------------------------------------
28
;# $Id: Jmakefile,v 1.5 2005/05/07 13:19:24 graaff Exp $
30
;# Those files lie in the ../gtk-shared directory
31
REMOTE_GLADE_C = callbacks.c
32
REMOTE_GLADE_H = callbacks.h
33
REMOTE_GLADE = $(REMOTE_GLADE_C) $(REMOTE_GLADE_H)
53
|expand f!$(LSRC) $(REMOTE_GLADE_C)!
67
|expand f!$(GLADE_C) $(REMOTE_GLADE_C)!
71
GLADE_GEN = $(GLADE_C) $(GLADE_H)
73
SRC = $(LSRC) $(GLADE_C) $(REMOTE_GLADE_C)
74
OBJ = $(LOBJ) $(GLADE_O)
76
/* Additional flags for GTK compilation, added in the substituted section */
77
++GTK_CFLAGS $gtkcflags
78
++GTK_LDFLAGS $gtkldflags
80
/* Add the glade command */
83
/* Add the libxml2 flags */
84
++XML2_CFLAGS $xmlcflags
85
++XML2_LDFLAGS $xmlldflags
90
;# Those extra flags are expected to be user-defined
91
CFLAGS = -I$(TOP) -I$(TOP_SRC) -I$(TOP_GUI) \
92
$(GTK_CFLAGS) $(XML2_CFLAGS) -DGUI_SOURCES -DCURDIR=$(CURRENT)
95
GLADEFILE = gtk-gnutella.glade
97
;# We allow the target to fail since we're distribute the generated files
98
;# with the sources, so even if they don't have glade, it will work.
100
;# Unfortunately there are problems with generating the sources from
101
;# the glade file. If the user does not have the right setup then the
102
;# compilation will fail, and most users won't be able to correct this
103
;# by using the distributed sources instead. Thus: commented out until
105
;#$(GLADE_GEN): $(GLADEFILE) $(REMOTE_GLADE)
106
;# -$(GLADE) --write-source $(GLADEFILE)
107
;# touch $(GLADE_GEN)
109
GTK_SHARED = ../gtk-shared
112
* Files in the GTK_SHARED directory are copied locally, so that they can
113
* be compiled with the relevant -DUSE_GTK1 or -DUSE_GTK2 flag and be
114
* present when "glade" runs.
117
|expand f!$(REMOTE_GLADE)!
120
$(CP) $(GTK_SHARED)/!f .
125
* Since the copied files are compiled, they must be part of the dependency
126
* for the "depend" target. It's a multiple target, hence the "::".
129
depend:: $(REMOTE_GLADE)
132
$(RM) $(REMOTE_GLADE)
135
* Only generate the library if configured to build for GTK2
138
|case d_usegtk2 in define
139
NormalLibraryTarget(gtk2, $(SRC), $(OBJ))