prefix=/usr/local exec_prefix=$(prefix) # Where to install the binaries bindir=$(exec_prefix)/bin libdir=$(exec_prefix)/lib #INSTALL=cp # You might want to change this to uncomment this on BSD systems INSTALL=install -c VERSION=1 CLEANFILES=lib$(LIB).a lib$(LIB).so.$(VERSION) $(OBJS) $(COBJS) core ALL_CXXFLAGS=$(CXXFLAGS) -I$(srcdir) -I$(srcdir)/../include $(INCLUDE) \ $(DEFINES) $(PIC_FLAG) ALL_CFLAGS=$(CFLAGS) $(DEBUG) $(OPTIMIZE) $(INCLUDE) $(DEFINES) $(PIC_FLAG) all: lib$(LIB).a lib$(LIB).so.$(VERSION) pure: all lib$(LIB).a: $(OBJS) $(COBJS) $(AR) r $@ $? $(RANLIB) $@ lib$(LIB).so.$(VERSION): $(SOBJS) $(SCOBJS) $(CC) -shared -soname lib$(LIB).so.$(VERSION) -o lib$(LIB).so.$(VERSION) $(SOBJS) $(SCOBJS) install: $(INSTALL) lib$(LIB).a $(libdir) $(INSTALL) lib$(LIB).so.$(VERSION) $(libdir) install-man: depend: depend_src depend.temp: $(GENSRCS) gen: $(GENSRCS)