# @(#)makefile	19.1 (ESO-IPG) 02/25/03 13:45:30
# .COPYRIGHT:	Copyright (c) 1988 European Southern Observatory,
#						all rights reserved
# .TYPE		make file
# .NAME		$MIDASHOME/$MIDVERS/gui/XEchelle/libsrc/makefile
# .LANGUAGE	makefile syntax
# .ENVIRONMENT	Unix Systems. 
# .COMMENT	Compiles source files and generates "libxech.a" library.
#
# .REMARKS
#
# .AUTHOR	
# .VERSION 1.1	880831:		Implementation
# .VERSION 1.2	890104:		Generating makefile.com for VMS systems
# .VERSION 2.1  901102:         new directory structure CG.
# .VERSION 3.0  930308:		Using default.mk file

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

INC  = ../../GraphLib/libsrc/$(UIMX)/include
MINC = ../../../incl

CFLAGS += $(C_OPT) $(DEBUG) $(GUI_OPT) $(SYS) -I$(LINC) -I$(INC) -I$(MINC) \
	$(X_CFLAGS) $(MOTIF_CFLAGS)  $(XMINC)    $(X11INC)

LIB = $(LLIBDIR)/libxech.a

OBJ =	listdir.o  translations.o commands.o

# DEPENDENCIES:
all: $(LIB)


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

clean:
	rm -f $(OBJ)
