# Uncomment the following line to include bitwise functions
# (iand ieor ior ishft not). You need them only if your f2c is rather old and
# doesn't understand them.
#
#OBSOLETE=1

#AOUT = -b i486-linuxaout

CC = ../f77
CFLAGS = $(AOUT)
FC = ../f77 
FFLAGS = $(AOUT)

LIB = libF77ext.a	
AR = ar ru
RANLIB = ranlib

SRCS = second.f etime.c exit.c fdate.c rand.c sleep.c
OBSSRCS = iand.c ieor.c ior.c ishft.c not.c

OBJS = second.o etime.o exit.o fdate.o rand.o sleep.o
OBSOBJS = iand.o ieor.o ior.o ishft.o not.o

ifdef OBSOLETE
	ALLOBJS = $(OBJS) $(OBSOBJS)
else
	ALLOBJS = $(OBJS)
endif

all: $(LIB)

$(LIB): $(ALLOBJS)
	$(AR) $(LIB) $(ALLOBJS)
	$(RANLIB) $(LIB)

clean:
	rm -f $(ALLOBJS) 

