# SccsId  	= "@(#)Makefile 4.11 (TU-Delft) 01/28/93"
VPATH		= ../..

include ../../../Config.mk

MODULE		= aux

#.c:
#	$(CC) -I. -I../.. $(CFLAGS) -DDRIVER -o $* $*.c aux.a -lm

.c.o:
	$(CC) -c -I. -I../.. -I../../.. $(CFLAGS) -o $@ $<



TARGET  = aux.a

CSRCS    = assert.c \
	  debug.c \
	  die.c \
	  new.c \
	  grow.c \
	  say.c \
	  strsave.c \
	  strfind.c \
	  plot.c \
	  clock.c \
	  monit.c \
	  mprintf.c \
	  fopen.c \
	  signal.c \
	  alarm.c \
	  getopt.c \
	  malloc.c \
	  monitor.c \
	  param.c

OBJS    = assert.o \
	  debug.o \
	  die.o \
	  new.o \
	  grow.o \
	  say.o \
	  strsave.o \
	  strfind.o \
	  plot.o \
	  clock.o \
	  monit.o \
	  mprintf.o \
	  fopen.o \
	  signal.o \
	  alarm.o \
	  getopt.o \
	  malloc.o \
	  monitor.o \
	  param.o

HDRS    = aux.h plot.h monitor.h debug.h assert.h bool.h proto.h \
	  malloc.h libc.h

SRCS    = $(CSRCS) $(HDRS)

default all: $(TARGET)

$(TARGET): $(OBJS)
	$(AR) ru $@ $?
	$(RANLIB) $@

eseinstall install: all

clean:; rm -f $(OBJS) $(TARGET) core LINT

tags:;  ctags $(SRCS)

LINT:   $(CSRCS) 
	$(LINT) $(LINTFLAGS) $(CSRCS) > LINT

list:;  @ for i in $(SRCS); do echo $$i; done

.PRECIOUS: $(TARGET)

files:	$(SRCS); @true

$(SRCS):
	-@[ $(TESTLINK) $@ ] || ln -s SRC/$@ .; \
	cd SRC ; [ -f $@ ] || get -s SCCS/s.$@;
#EOF
