#
#

#Check Operating system we are using
ifndef OSNAME
  OSNAME := $(subst -,_,$(shell uname))
endif

ifndef ARCH
  ARCH = VXWORKSPPC
endif

ifeq ($(OSNAME),SunOS)
LIBDIR = $(CODA)/$(ARCH)/lib
CFLAGS = -O $(DEFS)

ifeq ($(ARCH),VXWORKSPPC)
INCDIR=$(WIND_BASE)/target/h
CC = ccppc
DEFS = -mcpu=604 -DCPU=PPC604 -DVXWORKS -D_GNU_TOOL -DVXWORKSPPC
INCS = -Wall -fno-for-scope -fno-builtin -fvolatile -fstrength-reduce -mlongcall -I. -I$(INCDIR)

endif


endif


all: echoarch envGetRemote.o

envGetRemote.o: envGetRemote.c
	$(CC) -c $(CFLAGS) $(INCS) -o $@ envGetRemote.c 

clean:
	rm -f *.o

echoarch:
	echo "Make for $(ARCH)"
