
#++
#   Name: Makefile
#
#   Purpose: Attempting to use ANSI/ISO C to define abstract data type
#
#   Author: James Blustein <jamie@csd.uwo.ca>
#   Created: 1 January 1996
#   Last Modified: 10 May 1996 by James Blustein
#--

CC     = gcc
CFLAGS = -Wall -Wpointer-arith -Wconversion       \
         -Wstrict-prototypes -Wmissing-prototypes \
         -ansi -pedantic -g -O                    \
         -DUWOCSD #-DDEBUG 
OBJS   = stream.o 
LIBS   = 
LINT   = /usr/5bin/lint                         # /opt/SUNWspro/bin/lint
LINTFLAGS   = -lansic                           # -fd -lm               
LINKFLAGS   = -L$(HOME)/lib/include/`/bin/arch` # -L$(HOME)/lib/include/
LNS    = main.ln stream.ln 

encap_test: main.o $(OBJS) Makefile 
	$(CC) $(CFLAGS) $(LINKFLAGS) main.o $(OBJS) -o $@ $(LIBS)

main.o: main.c stream.h types.h proto.h
	$(CC) $(CFLAGS) -c main.c

stream.o: stream.c stream.h types.h proto.h 
	$(CC) $(CFLAGS) -c stream.c

${OBJS}: Makefile

.c.ln :
.h.ln :
	$(LINT) $(LINTFLAGS) -c $<

lint : $(LNS)
	$(LINT) $(LNS)

# End of Makefile
