# Generated automatically from Makefile.in by configure.
CC = gcc
CPPFLAGS += -Wall -O3 

SRCS = \
	sgp4sdp4.c \
	sgp_in.c \
	sgp_math.c \
	sgp_obs.c \
	sgp_time.c \
	solar.c

OBJS = $(SRCS:.c=.o)

.c.o:
	$(CC) -c $(CPPFLAGS) $< 

libsgp4sdp4.a: $(OBJS)
	ar rsuv $@ $(OBJS)
	

ephem : main.o libsgp4sdp4.a
	$(CC) -lm -o $@ $^ 

$(OBJS) : sgp4sdp4.h

.PHONY : clean
clean  :
	-/bin/rm -f *.o *~ libsgp4sdp4.a ephem

distclean:
	-/bin/rm -f *.o *~ config.* libsgp4sdp4.a ephem Makefile
