include ../../Make.inc
include ../../Make.rules

INSTALL_BASE=${NORDUGRID_LOCATION}
LIBS=
CPPLIBS=-lstdc++
INCLUDES=-I${GLOBUS_INCLUDES}
PROGRAMS=fileplugin.so
OBJECTS=fileplugin.o ../../config/config.o ../userspec.o ../names.o ../misc.o \
        ../../misc/inttostring.o init.o ../../config/environment.o \
        ../../files/info_types.o ../../misc/canonical_dir.o \
        ../../files/info_files.o ../../misc/stringtoint.o ../../misc/delete.o \
        ../../misc/escaped.o ../../misc/log_time.o ../../misc/globus_error_utils.o \
        ../../transfer/proxy.o ../../misc/url_options.o \
        ../../auth/libauth.a ../../external/voms/api/libvomsapi.a

all: ${PROGRAMS}

fileplugin.so: ${OBJECTS}
	${CC} -shared -o fileplugin.so ${OBJECTS} ${LIBS} -Wl,-Bstatic ${CPPLIBS} -Wl,-Bdynamic

clean:
	@rm -f ${PROGRAMS} ${OBJECTS} ${OTHER_OBJECTS}

install: ${PROGRAMS} 
	@echo "Actual instalaltion is performed in base directory"
