Revision history:
$Log$
+ Revision 1.6 2004/11/13 10:55:44 glbuild
+ Added artifacts RPMS directory
+
Revision 1.5 2004/10/29 22:55:07 dimeglio
Use envset target
Public common targets
=============================================== -->
+ <var name="global.prefix" unset="true"/>
+ <property name="global.prefix" value="gridsite"/>
+
<target name="localinit" depends="envcheck">
<mkdir dir="${stage.dir}" />
<mkdir dir="${dist.dir}" />
</target>
<target name="init" depends="localinit">
+ <echo>${global.prefix}</echo>
</target>
<target name="checkstyle" depends="init">
<target name="buildmodules" depends="envset"/>
</project>
+
export MYCFLAGS=-I. -I../interface -I/usr/include/httpd -I/usr/include/apr-0 -I/opt/glite/include
endif
+ifndef OPENSSL_FLAGS
+export OPENSSL_FLAGS=-I/usr/include/openssl
+endif
+
ifndef MYLDFLAGS
export MYLDFLAGS=-L.
# export MYLDFLAGS=-L. -L/opt/glite/lib -lvomsc
endif
+ifndef OPENSSL_LIBS
+export OPENSSL_LIBS=-L/usr/lib/openssl
+endif
+
#
# Build
#
ar src libgridsite.a grst_x509.o grst_gacl.o grst_http.o
grst_x509.o: grst_x509.c ../interface/gridsite.h
- gcc $(MYCFLAGS) \
+ gcc $(MYCFLAGS) $(OPENSSL_FLAGS) \
-I/usr/kerberos/include -c grst_x509.c
grst_gacl.o: grst_gacl.c ../interface/gridsite.h
- gcc $(MYCFLAGS) \
+ gcc $(MYCFLAGS) $(OPENSSL_FLAGS) \
-I/usr/kerberos/include `xml2-config --cflags` -c grst_gacl.c
grst_http.o: grst_http.c ../interface/gridsite.h
- gcc $(MYCFLAGS) \
+ gcc $(MYCFLAGS) $(OPENSSL_FLAGS) \
-I/usr/kerberos/include -c grst_http.c
urlencode: urlencode.c libgridsite.a
gcc -DVERSION=\"$(PATCH_VERSION)\" $(MYCFLAGS) \
-o urlencode urlencode.c -L. \
- -I/usr/kerberos/include -lgridsite
+ $(OPENSSL_FLAGS) -I/usr/kerberos/include -lgridsite
htcp: htcp.c
gcc -DVERSION=\"$(PATCH_VERSION)\" -I. -o htcp htcp.c \
mod_gridsite.so: mod_gridsite.c mod_ssl-private.h libgridsite.a
gcc $(MYCFLAGS) -shared -Wl,-soname=gridsite_module \
- -I/usr/kerberos/include \
+ $(OPENSSL_FLAGS) -I/usr/kerberos/include \
-I/usr/include/libxml2 \
-DVERSION=\"$(VERSION)\" -o mod_gridsite.so \
mod_gridsite.c $(MYLDFLAGS) -lxml2 -lm -lz -lgridsite
grst_admin_main.c \
grst_admin_gacl.c \
grst_admin_file.c \
- -I/usr/kerberos/include \
- -DVERSION=\"$(VERSION)\" -lgridsite -lssl -lcrypto -lxml2 -lz -lm
+ $(OPENSSL_FLAGS) -I/usr/kerberos/include \
+ -DVERSION=\"$(VERSION)\" $(OPENSSL_LIBS) -lgridsite -lssl -lcrypto -lxml2 -lz -lm
findproxyfile: findproxyfile.c libgridsite.a
gcc -DVERSION=\"$(PATCH_VERSION)\" $(MYCFLAGS) $(MYLDFLAGS) \
-o findproxyfile findproxyfile.c -L. \
- -I/usr/kerberos/include -lgridsite \
- -lssl -lcrypto -lxml2 -lz -lm
+ $(OPENSSL_FLAGS) -I/usr/kerberos/include -lgridsite \
+ $(OPENSSL_LIBS) -lssl -lcrypto -lxml2 -lz -lm
apidoc:
doxygen Doxyfile
gaclexample: gaclexample.c libgridsite.a
gcc -o gaclexample gaclexample.c -I. -L. \
- -I/usr/kerberos/include -lgridsite \
+ $(OPENSSL_FLAGS) -I/usr/kerberos/include -lgridsite \
-lssl -lcrypto -lxml2 -lz -lm
#
soapC.c soapServer.c
gcc $(MYCFLAGS) $(MYLDFLAGS) -o gridsite-delegation.cgi \
grst-delegation.c \
- -I/usr/kerberos/include -I$(GSOAPDIR)/include \
+ $(OPENSSL_FLAGS) -I/usr/kerberos/include -I$(GSOAPDIR)/include \
-DVERSION=\"$(VERSION)\" -L$(GSOAPDIR)/lib \
soapC.c soapServer.c -lgsoap \
-lgridsite -lcurl -lz -lssl -lcrypto -lxml2 -lm
soapC.c soapServer.c
gcc $(MYCFLAGS) $(MYLDFLAGS) -o htproxyput \
htproxyput.c \
- -I/usr/kerberos/include \
+ $(OPENSSL_FLAGS) -I/usr/kerberos/include \
-g -DVERSION=\"$(VERSION)\" \
-I$(GSOAPDIR)/include -DWITH_OPENSSL -L$(GSOAPDIR)/lib \
soapC.c soapClient.c -lgsoap \
soapC.c soapServer.c libstdsoap2.a
gcc $(MYCFLAGS) $(MYLDFLAGS) -o proxyput-example \
proxyput-example.c \
- -I/usr/kerberos/include \
+ $(OPENSSL_FLAGS) -I/usr/kerberos/include \
-g -DVERSION=\"$(VERSION)\" \
-I$(GSOAPDIR) -DWITH_OPENSSL \
soapC.c soapClient.c libstdsoap2.a \
printenv
ls -l
ls -lR /usr/local/
+