
.c.o:
	$(CC) -c $(CPPFLAGS) $(DEFS) -I/usr/athena/include -I$(srcdir) $(CFLAGS) $<

OBJ1=ath1.o
OBJ2=ath2.o

all: libath1.a libath2.a

checkprogs: athtest1 athtest2

libath1.a: $(OBJ1)
	ar r $@ $(OBJ1)

libath2.a: $(OBJ2)
	ar r $@ $(OBJ2)

athtest1: athtest.o
	$(CC) -o $@ athtest.o

athtest2: athtest.o
	$(CC) -o $@ athtest.o -L. -L/usr/athena/lib -lath1 -lath2 -lhesiod
