#-----------------------------------------------------------------------------
#  Copyright (c) 1991,1992 Southeastern Universities Research Association,
#                          Continuous Electron Beam Accelerator Facility
# 
#  This software was developed under a United States Government license
#  described in the NOTICE file included as part of this distribution.
# 
#  CEBAF Data Acquisition Group, 12000 Jefferson Ave., Newport News, VA 23606
#  Email: coda@cebaf.gov  Tel: (804) 249-7101  Fax: (804) 249-7363
# -----------------------------------------------------------------------------
#  
#  Description:  Makefile for Trigger Supervisor RPC libraries and Server
# 	
# 	
#  Author:  David Abbott, TJANF Data Acquisition Group
# 
#  Revision History:
#    $Log:	Makefile,v $
#

ifndef OSTYPE
  OSTYPE := $(subst -,_,$(shell uname))
endif


ifeq ($(OSTYPE),SunOS)
LIBS = 
EXTRA =
endif

ifndef ARCH
  ARCH=VXWORKSPPC
endif


ifeq ($(ARCH),VXWORKSPPC)

VXWORKS_ROOT = /site/vxworks/5.5/ppc/target

  DEFS   = -mcpu=604 -DCPU=PPC604 -DVXWORKS -D_GNU_TOOL -mlongcall -fno-for-scope -fno-builtin -fvolatile -DVXWORKSPPC
  INCS   = -I. -I$(VXWORKS_ROOT)/h -I$(VXWORKS_ROOT)/h/rpc -I$(VXWORKS_ROOT)/h/net
  CC     = ccppc $(INCS) $(DEFS)
  LD     = ldppc

# explicit targets

all: tsUtil.o

install: 
	@echo "installing tsUtil.o"
	cp tsUtil.o $(CODA)/VXWORKSPPC55/bin/

clean:
	rm -f tsUtil.o

tsUtil.o: tsUtil.c tsUtil.h tsIntUtil.c
	$(CC) -c tsUtil.c

endif





