# @(#)makefile	19.1 (ESO-IPG) 02/25/03 14:31:36
# .COPYRIGHT:	Copyright (c) 1988 European Southern Observatory,
#						all rights reserved
# .TYPE		make file
# .NAME		$MIDASHOME/$MIDVERS/system/idiserver/libsr/makefile 
# .LANGUAGE	makefile syntax
# .ENVIRONMENT	Unix Systems. 
# .COMMENT	Compiles source files and generates "libidicl." library
#
# .REMARKS	
# .AUTHOR       K. Banse
# .VERSION 1.5  881114
# .VERSION 3.1  890629  	add Xtest.exe   KB
# .VERSION 4.1  901203  	New directory structure. CG.
# .VERSION 4.2  901221  	add fontsup.exe   KB
# .VERSION 4.3  910923  	throw out preinstall stuff for VMS  KB
# .VERSION 4.4  911220  	throw out creadsp.c (merged with wndcrea.c) KB
# .VERSION 3.0  930308:		Using default.mk file
# .VERSION 3.1  940314:		Creating only the libidicl library. CG.

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

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

LIBOUT= $(LIBDIR)/libidicl.a

OBJ = idiclt.o

# DEPENDENCIES;
all: $(MAKEFILE_VMS) $(LIBOUT) 

$(MAKEFILE_VMS): makefile
	$(MAKE_VMS)

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

clean: 
	rm -f $(OBJ)
