#********************************************+ # Location of DPSS libs and include files | #********************************************+ DPSS_HOME = /usr/local/DPSS #********************************************+ # Location of LDAP libs and include files | #********************************************+ LDAP_HOME = /usr/local #**************************************************+ # Location of BerkeleyDB libs and include files | #**************************************************+ DB_HOME = /usr/local/BerkeleyDB arch = solaris # or irix or linux prefix = /usr/local srcdir = . exec_prefix = . bindir = $(exec_prefix)/bin libdir = $(exec_prefix)/lib incdir = $(exec_prefix)/include mandir = $(exec_prefix)/man VPATH = $(srcdir):$(srcdir)/.. DEFINES = -DDPSSHOME=\"/usr/local/DPSS\" -DSOLARIS -D_REENTRANT -DDPSS_MCAT CC = cc -g -mt DPSS_INCLUDE = -I$(DPSS_HOME)/include -I$(DB_HOME)/include DPSS_LIBS = -L$(DPSS_HOME)/lib -ldpssfs -ldpss -ldpssutils -ljnetutils \ -L$(DB_HOME)/lib -ldb -ldimage NETLOGGER_LIBS = -L$(DPSS_HOME)/lib -lnetlogger LDAP_LIBS = -L$(DPSS_HOME)/lib -ldpssLdap -L$(LDAP_HOME) -lldap -llber EXTRA_LIBS = -lpthread -lsocket -lnsl -lgen -lm #**********************************+ # Put your source code files here | #**********************************+ SRC.c = dpss_client.c # Corresponding Object files SRC.o = $(SRC.c:%.c=%.o) # Programs to build PROGS = $(SRC.c:%.c=%) # Flags etc. INCLUDES = $(DPSS_INCLUDE) CFLAGS = $(DEFS) $(CDEBUGFLAGS) $(DEFINES) $(INCLUDES) LIBRARIES = $(DPSS_LIBS) $(NETLOGGER_LIBS) $(EXTRA_LIBS) INSTALL = install-sh -c # Rules all: $(PROGS) install: $(PROGS) -mkdir -p $(bindir) @for i in $(PROGS) ; do \ echo "Installing $$i to $(bindir)" ; \ $(INSTALL) $$i -m 775 $(bindir) ; \ done; $(PROGS): % : %.o $(CC) $(CFLAGS) -o $@ $@.o $(LIBRARIES) clean: -rm -f *.o core *.BAK *~ *.out $(SRC.o) $(PROGS) $(OBJS) depend: makedepend -- $(CFLAGS) -- ../*.c