# .COPYRIGHT:   Copyright (c) 1988 European Southern Observatory,
#                                               all rights reserved
# .TYPE         make file
# .NAME         $MIDASHOME/$MIDVERS/gui/XAlice/libsrc/makefile
# .LANGUAGE     makefile syntax
# .ENVIRONMENT  Unix Systems.
# .COMMENT      Compiles source files and generates "mgauss.a" library
#               for Alice context.
#
# .REMARKS
# .AUTHOR       Carlos Guirao & someone else
# .VERSION 1.1  20-Jul-1993:    Implementation

include ../../../local/default.mk

CFLAGS += $(C_OPT) $(DEBUG) $(SYS) -I$(LINC) -I$(INC) $(X11INC)

LIBOUT = ../../lib/libmgauss.a

OBJ  =  Amgauss.o fit.o fpoly.o gammln.o gammq.o \
	gcf.o gser.o moment.o ratint.o\
	spectrum.o mdian1.o sort.o splint.o

# DEPENDENCIES:
all: $(LIBOUT)

$(LIBOUT): $(OBJ)
	$(AR) $(AR_OPT) $(LIBOUT) $(OBJ)
	$(RANLIB) $(LIBOUT)

clean:
	rm -f $(OBJ)
