/* uncomment the following line to use gcc */
/*CC = gcc*/

/* uncomment the following line if you're using gcc under Ultrix (this
 * eliminates the "-Wf,-XNh2000 -Olimit 2000" felderkarb) */
/*CCOPTIONS =*/

DEFINES =

DEPLIBS         = XawClientDepLibs $(TOP)/libsky.a

SYS_LIBRARIES   = -lm
LOCAL_LIBRARIES = XawClientLibs $(TOP)/libsky.a

LIBSRCS =	ybs_read.c ybs_disp.c \
		bsc5_read.c bsc5_disp.c \
		rngc_read.c rngc_disp.c rngc_desc.c \
		ngc2000_read.c ngc2000_disp.c ngc2000_desc.c \
		sao_read.c sao_disp.c \
		saoj2000_rd.c saoj2000_dsp.c \
		var_read.c var_disp.c \
		gcvs_read.c gcvs_disp.c \
		dbl_read.c dbl_disp.c \
		wds_read.c wds_disp.c \
		qso_read.c qso_disp.c \
		ugc_read.c ugc_disp.c \
		ngc_names.c starnames.c argelander.c

LIBOBJS =	ybs_read.o ybs_disp.o \
		bsc5_read.o bsc5_disp.o \
		rngc_read.o rngc_disp.o rngc_desc.o \
		ngc2000_read.o ngc2000_disp.o ngc2000_desc.o \
		sao_read.o sao_disp.o \
		saoj2000_rd.o saoj2000_dsp.o \
		var_read.o var_disp.o \
		gcvs_read.o gcvs_disp.o \
		dbl_read.o dbl_disp.o \
		wds_read.o wds_disp.o \
		qso_read.o qso_disp.o \
		ugc_read.o ugc_disp.o \
		ngc_names.o starnames.o argelander.o

SKYSRCS = sky.c catalog.c \
		user.c grid.c boundary.c id_object.c \
		position.c draw.c ps_draw.c format.c \
		utils.c heapsort.c binary_db.c binsearch.c

SKYOBJS = sky.o catalog.o \
		user.o grid.o boundary.o id_object.o \
		position.o draw.o ps_draw.o format.o \
		utils.o heapsort.o binary_db.o binsearch.o

NormalLibraryObjectRule()
NormalLibraryTarget(sky,$(LIBOBJS))

AllTarget(xsky)

NormalProgramTarget(xsky,$(SKYOBJS),$(DEPLIBS),$(LOCAL_LIBRARIES),)
SpecialObjectRule(position.o,position.c,-DMEEUS)

InstallProgram(xsky,$(BINDIR))
InstallManPage(xsky,$(MANDIR))

SRCS = $(LIBSRCS) $(SKYSRCS)

DependTarget()
LintTarget()
