# Generated automatically from Makefile.in by configure. # Makefile.in for pcrs --oes # ############################################################################# # Version number ############################################################################# VERSION_MAJOR = 0 VERSION_MINOR = 0 VERSION_POINT = 3 VERSION = 0.0.3 ############################################################################# # Directories for "make install" ############################################################################# prefix = /usr/local exec_prefix = /usr/local BINDIR = ${exec_prefix}/bin LIBDIR = /usr/local/lib INCLUDEDIR = /usr/local/include MANDIR = ${prefix}/man/man3 ############################################################################# # Build tools ############################################################################# CC = cc LD = cc LN_S = ln -s INSTALL = /usr/bin/install -c -o root -g wheel TAR = tar AR = ar rcs HAVE_GZIP = yes ############################################################################# # PCRE ############################################################################# LIBS = -lpcre ############################################################################# # Compiler switches & include ############################################################################# CFLAGS = -pipe -fno-common -Wall -Wstrict-prototypes -Wshadow -Wconversion -pedantic \ -I$(INCLUDEDIR) -L$(LIBDIR) \ # -Wunreachable-code -Wmissing-prototypes \ -Waggregate-return -W -Wfloat-equal -Wsign-compare \ -Wwrite-strings LIBFLAGS = -shared -lc LDFLAGS = ############################################################################# # Build targets ############################################################################# all: shared static pcrsed pcrs.o: pcrs.c pcrs.h $(CC) $(CFLAGS) -fPIC -c pcrs.c pcrsed: pcrs.o $(CC) $(CFLAGS) pcrsed.c pcrs.o -o pcrsed $(LIBS) shared: pcrs.o $(CC) $(CFLAGS) $(LDFLAGS) $(LIBFLAGS) -Wl,-soname,libpcrs.so.$(VERSION_MAJOR) -o libpcrs.so.$(VERSION_MAJOR) pcrs.o $(LIBS) static: $(AR) libpcrs.a pcrs.o install: all $(INSTALL) -m 755 libpcrs.so.$(VERSION_MAJOR) $(prefix)/lib $(LN_S) -f libpcrs.so.$(VERSION_MAJOR) $(prefix)/lib/libpcrs.so $(INSTALL) -m 644 libpcrs.a $(prefix)/lib $(INSTALL) -m 644 pcrs.3 $(MANDIR) @echo -e " ***************************************************\n" \ "** Libraries have been installed in $(prefix)/lib. \n" \ "** Don't forget to run ldconfig. \n" \ "***************************************************" @if test -f pcrsed; then\ echo -e "\nRebuilding pcrsed to use the installed shared library"; \ $(CC) $(CFLAGS) -L$(prefix)/lib pcrsed.c -o pcrsed $(LIBS) -lpcrs; \ fi clean: -rm -f *.o libpcrs.* pcrsed distclean: clean -rm -f Makefile config.* pcrs.[h3] *~ *.tar.gz tarball-src: distclean $(LN_S) `pwd` ../pcrs-$(VERSION) $(TAR) -C.. -cvhzf pcrs-$(VERSION)-src.tar.gz pcrs-$(VERSION) $(RM) ../pcrs-$(VERSION)