4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster#
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster# Makefile for the sample Oracle NetPoint Authentication Plugin
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster#
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster# Please customize to your environment
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster#
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster# Note: this makefile expects to be in
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster# /INSTALLDIR/sdk/authentication/samples/general/
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster#
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan FosterCC = /tools/ns/bin/gcc-2.95.2
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan FosterRM = rm -f
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan FosterAUTHN_INCLUDE_DIR =include
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan FosterOBJS = authn_api.o
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan FosterDSO = authn_api.so
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan FosterCC_FLAGS = -I$(AUTHN_INCLUDE_DIR) -c -KPIC
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan FosterGCC_FLAGS = -I$(AUTHN_INCLUDE_DIR) -c -fPIC -Wall
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan FosterLIBS = -lamsdk -lxml2 \
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster -L /usr/lib/mps -lssl3 -lnss3 -lplc4 -lplds4 -lnspr4 \
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster -L /usr/ucblib -lucb
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan FosterCFLAGS= $(GCC_FLAGS)
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan FosterLDFLAGS = -L lib $(LIBS)
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster$(DSO): $(OBJS)
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster $(CC) -G $(OBJS) $(LDFLAGS) -o $(DSO)
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster$(OBJS): authn_api.c
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster $(CC) $(CFLAGS) $(LDFLAGS) -o $(OBJS) authn_api.c
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterclean:
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster $(RM) $(OBJS) $(DSO)