"Fossies" - the Fresh Open Source Software Archive

Member "rgdbm-2.1.42/contrib/makefile" (26 Jun 2007, 1483 Bytes) of package /linux/privat/old/rgdbm-2.1.42.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 LIBS = -lcc1 -lhistory -lreadline -lcrypt -lssl -lpub 
    3 FILES= gdbmsql.y gdbmsql.c gdbmsql.1 makefile.in configure.in
    4 
    5 # begin values added by autoconf
    6 NAME    = rgdbm
    7 VERSION = 2.1.42
    8 
    9 INSTALL = /usr/bin/install -c
   10 INSTALL_PROGRAM  = ${INSTALL} -s
   11 INSTALL_DATA     = ${INSTALL} -m 644
   12 
   13 prefix  = /usr/local
   14 exec_prefix  = ${prefix}
   15 
   16 BINDIR  = $(INSTALL_ROOT)/${exec_prefix}/bin
   17 DOCDIR  = $(INSTALL_ROOT)/${prefix}/share/doc/$(NAME)
   18 INCDIR  = $(INSTALL_ROOT)/${prefix}/include
   19 LIBDIR  = $(INSTALL_ROOT)/${exec_prefix}/lib
   20 MANDIR  = $(INSTALL_ROOT)//usr/share/man
   21 SBINDIR = $(INSTALL_ROOT)/${exec_prefix}/sbin
   22 
   23 CC      = gcc
   24 CFLAGS  = -g -O2 $(XCFLAGS)
   25 LIBS    = -lcc1 -lhistory -lreadline -lcrypt -lssl -lpub  $(XLIBS)
   26 AR      = ar
   27 # end values added by autoconf
   28 
   29 
   30 all: gdbmsql
   31 
   32 %.c : %.y
   33 	preccx -c14 $< $@
   34 
   35 gdbmsql: gdbmsql.o 
   36 	$(CC) $(CFLAGS) -o $@ $^ $(LIBS) -L.. -lrgdbm
   37 
   38 gdbmsql.o: gdbmsql.c
   39 	$(CC) $(CFLAGS) -I.. -c -o $@ $< 
   40 
   41 configure: configure.in
   42 	autoconf
   43 
   44 makefile: makefile.in configure
   45 	./configure \
   46 	--localstatedir=/var \
   47 	--mandir=/usr/share/man
   48 
   49 distclean: clean
   50 	rm -f *..c
   51 	rm -f config.cache config.status configure.scan
   52 	rm -f gmon.out
   53 
   54 clean:
   55 	rm -f *.o gdbmsql
   56 
   57 ci checkin:
   58 # this is already taken care of by the dir above
   59 #	ci -l -n"$(TAG)" -m"$(MSG)" $(FILES) 
   60 
   61 install: gdbmsql
   62 	mkdir -p $(MANDIR)/man1 || true
   63 	$(INSTALL_DATA) gdbmsql.1 $(MANDIR)/man1/gdbmsql.1 || true
   64 	mkdir -p $(BINDIR) || true
   65 	$(INSTALL_PROGRAM) gdbmsql $(BINDIR)/gdbmsql || true
   66