#.COPYRIGHT:	Copyright (c) 1988 European Southern Observatory,
#						all rights reserved
#.TYPE		make file
#.NAME		$MIDASHOME/local/lib/os/unix/makefile 
#.LANGUAGE	makefile syntax
#.ENVIRONMENT	Unix Systems. 
#.COMMENT	Compiles local source files and generates "oslib.a" library.
#
#.REMARKS	
#.AUTHOR	Carlos Guirao
#.VERSION 1.1	880831:		Implementation
#.VERSION 1.2	910917:		Now local is under $MIDVERS
# .VERSION 3.0  930308:		Using default.mk file

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

LINC = ../../../incl
CFLAGS += $(C_OPT) $(DEBUG) $(SH_OPT) $(OSSYS) $(SYS) -I$(LINC) -I$(INC)

LIB = $(LIBDIR)/libos.a

OBJ=	iodev.o

# DEPENDENCIES:
all: $(LIB)

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

clean:
	rm -f $(OBJ)
