# this is a UNIX Makefile.
# See the file Makefile.bcc for the Borland Makefile

#SRC=expandv.c
#OBJ=$(SRC:.c=.o)

#CC=gcc
CFLAGS=

AR=ar
ARFLAGS=-rc
RANLIB=ranlib

RM=rm -f


all: libs

libs:
	(cd rph; $(MAKE) all "CC=$(CC)" "CFLAGS=$(CFLAGS)")
	(cd dsc; $(MAKE) all "CC=$(CC)" "CFLAGS=$(CFLAGS)")
	(cd lsm; $(MAKE) all "CC=$(CC)" "CFLAGS=$(CFLAGS)")

#libvar.a: $(OBJ)
#	$(AR) $(ARFLAGS) $@ $(OBJ)
#	$(RANLIB) $@

#lint:
#	$(LINT) $(CFLAGS) $(SRC)

clean:
	$(RM) *~ core

realclean: clean

distclean: realclean
	(cd rph; $(MAKE) $@ "RM=$(RM)")
	(cd dsc; $(MAKE) $@ "RM=$(RM)")
	(cd lsm; $(MAKE) $@ "RM=$(RM)")
