#******************************************************************************
#
# $Id$
#
# $Log$
# Revision 1.2  2000/05/09 12:55:03  root
# Changed dependency for test_fcc_api target.
#
# Revision 1.1  2000/04/04 15:37:31  rodney
# Initial revision
#
#
#******************************************************************************

# Makefile for fcc_api library and test program

MODEL = f
DEBUG = -g2 -w5

# set source_node in .profile if source resides on another node other than
# the current one i.e export SOURCE_NODE=//1
NODE = $(SOURCE_NODE)

ALTEX_INCLUDE_DIR	= $(NODE)$(altexinc)
COMMON_INCLUDE_DIR	= $(NODE)$(commoninc)
LIB_DIR		= .
BIN_DIR		= $(NODE)$(altexbin)

EVENT_LIB 	= -l event3r.lib
DATA_MAN_LIB = -l data_man3r.lib

CFLAGS	= -m$(MODEL) $(DEBUG) -I $(ALTEX_INCLUDE_DIR) -I $(COMMON_INCLUDE_DIR) -I .
LDFLAGS = -M $(EVENT_LIB) $(DATA_MAN_LIB)

#SOURCE = fcc_api.c 
OBJS = fcc_api.o 
FCC_LIB = fcc_api
TEST = test_fcc_api

all: $(TEST) 
	
$(TEST): $(TEST).c  
	$(CC) $(CFLAGS) $(LDFLAGS) -l fcc_api3r.lib -o $(TEST) $(TEST).c
	
clean:
	rm -v -f *.o *.err *.map *.lib
	rm -v -f $(TEST)
	rm -v -f $(LIB_DIR)/$(FCC_LIB)3r.lib

install:
	cp -V $(LIB_DIR)/$(FCC_LIB)3r.lib $(commonlib)
# End of File
