# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.65 91/07/25 17:50:17 rws Exp $
#
# The cpp used on this machine replaces all newlines and multiple tabs and
# spaces in a macro expansion with a single space.  Imake tries to compensate
# for this, but is not always successful.
#

            TOP = ../.
        CURRENT = ./dotsrc

             CC = cc
            CPP = /lib/cpp
             AS = as
             LD = ld
             AR = ar
           MAKE = make
          IMAKE = imake
        INSTALL = install -c
            CAT = cat
             MV = mv
             CP = cp
             LN = ln
             RM = rm -f
         RANLIB = ranlib
            SED = sed
          EMACS = nemacs
           LINT = LintCmd
    LINTLIBFLAG = -C
       LINTFLAG = -ax
    QXTINCLUDES = $(QXT)/include
     QXTDEFINES =

            QXT = /db/Quixote/v3/SS
     QXTINCLUDE = $(QXT)/include
         QXTBIN = $(QXT)/bin
         QXTLIB = $(QXT)/lib

         CONFIG = $(TOP)/config
      SUBCONFIG = ../$(TOP)/config

    CDEBUGFLAGS = -g
       INCLUDES =
       LINKLIBS =
        DEFINES = $(QXTDEFINES)
      CCOPTIONS =
      LDOPTIONS =
      AROPTIONS = ru

         CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(EXTCCOPTIONS) $(INCLUDES) $(DEFINES)
        LDFLAGS = $(CDEBUGFLAGS) $(LDOPTIONS) $(EXTLDOPTIONS) $(LINKLIBS)
        ARFLAGS = $(AROPTIONS)

#
# Imakefile
#
# Imakefile for .src data structure access function library
#

TOBJS = test_f.o test1.o test2.o test3.o test4.o
LOBJS = dotsrc1.o dotsrc2.o dotsrc3.o dotsrc4.o common.o hash.o

EXTLDOPTIONS = -L.
LIBS = -lqxtsrc -lm
INCLUDES =
LINKLIBS =

all: dotsrc.h libqxtsrc.a # test

dotsrc.h: body.h idm1.h idm2.h idm3.h idm4.h common.h \
		rm1.h rm2.h rm3.h rm4.h \
		wm1.h wm2.h wm3.h wm4.h \
		ex1.h ex2.h ex3.h ex4.h mdebug.h
	$(CAT) body.h idm1.h idm2.h idm3.h idm4.h common.h \
		rm1.h rm2.h rm3.h rm4.h \
		wm1.h wm2.h wm3.h wm4.h \
		ex1.h ex2.h ex3.h ex4.h > dotsrc.h

libqxtsrc.a: $(LOBJS)
	$(RM) $@
	$(AR) ruc $@ $(LOBJS)
	$(RANLIB) $@

clean::
	$(RM) libqxtsrc.a

test: test_h test_f

test_h: test_h.c dotsrc.h
#	lint test_h.c

test_f: $(TOBJS) libqxtsrc.a
	$(RM) $@
	$(CC) -o $@ $(LDFLAGS) $(TOBJS) $(LIBS)

clean::
	$(RM) test_f

install:: libqxtsrc.a
	-@if [ -d $(QXTLIB) ]; then set +x; \
	else (set -x; mkdir $(QXTLIB)); fi
	$(RM) $(QXTLIB)/libqxtsrc.a
	$(INSTALL)  libqxtsrc.a $(QXTLIB)
	$(RANLIB) $(QXTLIB)/libqxtsrc.a

install:: dotsrc.h
	-@if [ -d $(QXTINCLUDE) ]; then set +x; \
	else (set -x; mkdir $(QXTINCLUDE)); fi
	${SED} '/#include "mdebug.h"/d' dotsrc.h > $(QXTINCLUDE)/dotsrc.h

clean::
	-${RM} -f dotsrc.h libqxtsrc.a test_f

clean::
	$(RM) "#"* *.bak *.o core *~ y.tab.c lex.yy.c

dotsrc1.o: dotsrc1.c dotsrc.h
dotsrc2.o: dotsrc2.c dotsrc.h
dotsrc3.o: dotsrc3.c dotsrc.h
dotsrc4.o: dotsrc4.c dotsrc.h
common.o: common.c dotsrc.h
hash.o: hash.c hash.h

test_f.o: test_f.c dotsrc.h
test1.o: test1.c dotsrc.h
test2.o: test2.c dotsrc.h
test3.o: test3.c dotsrc.h
test4.o: test4.c dotsrc.h

Makefile::
	-@if [ -f Makefile ]; then set -x; \
	$(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
	fi
	$(IMAKE) -I$(CONFIG) -DTopDir=$(TOP) -DCurDir=$(CURRENT)

Makefiles::

install::

clean::

