

CC_FLAGS= $(CFLAGS)
LD_LIBS= $(LDLIBS)

#
# Default Makefile Rules
#

install :: all

clean ::
	rm -f Makefile.full

#
# Makefile Rules
#



CC_OPT= -g

all: libtime.a

absolute.o : absolute.c Makefile.full
	$(CC) $(CC_FLAGS) -c absolute.c

clean ::
	rm -f absolute.o

julian.o : julian.c Makefile.full
	$(CC) $(CC_FLAGS) -c julian.c

clean ::
	rm -f julian.o

unix.o : unix.c Makefile.full
	$(CC) $(CC_FLAGS) -c unix.c

clean ::
	rm -f unix.o

misc.o : misc.c Makefile.full
	$(CC) $(CC_FLAGS) -c misc.c

clean ::
	rm -f misc.o

thirty_360.o : thirty_360.c Makefile.full
	$(CC) $(CC_FLAGS) -c thirty_360.c

clean ::
	rm -f thirty_360.o

all : libtime.a

libtime.a :  absolute.o julian.o unix.o misc.o thirty_360.o Makefile.full
	ar rc libtime.a  absolute.o julian.o unix.o misc.o thirty_360.o
	ranlib libtime.a

clean :: 
	rm -f libtime.a


install ::
	if test -f $(INST_DIR)/lib/libtime.a;\
	then\
		rm -f $(INST_DIR)/lib/libtime.a.old;\
		mv $(INST_DIR)/lib/libtime.a $(INST_DIR)/lib/libtime.a.old;\
	fi;\
	cp libtime.a $(INST_DIR)/lib/libtime.a
	ranlib $(INST_DIR)/lib/libtime.a
	chmod 744 $(INST_DIR)/lib/libtime.a

install ::
	if test -f $(INST_DIR)/include/timelib.h;\
	then\
		rm -f $(INST_DIR)/include/timelib.h.old;\
		mv $(INST_DIR)/include/timelib.h $(INST_DIR)/include/timelib.h.old;\
	fi;\
	cp timelib.h $(INST_DIR)/include/timelib.h
	chmod 744 $(INST_DIR)/include/timelib.h




