head	1.1;
access;
symbols
	Hobson_Rock_14Dec2009:1.1
	BEFORE_VCS_CHANGE:1.1
	Hobson_Rock_16Oct2009:1.1
	Hobson_Rock_29June2009:1.1
	mar19_2009:1.1
	mar18_2009:1.1
	feb13_2009:1.1
	feb10-2009:1.1
	feb09-2009:1.1
	dec15_2008:1.1
	dec12_2008:1.1
	ST_10_5:1.1
	ST_10_4b:1.1
	ST_10_4:1.1
	ST_10_3:1.1
	ST10_HW:1.1
	ST_10_2:1.1
	ST_10_1:1.1
	ST_10_0:1.1
	AUTONOMY_BRANCH:1.1.0.2
	AUTONOMY:1.1
	AUTONOMY-2008_07_30:1.1;
locks; strict;
comment	@# @;


1.1
date	2004.02.12.20.03.10;	author sib;	state Exp;
branches;
next	;


desc
@@


1.1
log
@sib: adding the XPortIO test utility. not tested yet!
@
text
@INCLUDE_DIRS = -I . -L .

ERROR_LEVEL = 5

HOST_OS := $(shell uname -s)

ifeq ($(shell echo $(HOST_OS) | grep -c QNX), 1)
 QNX := 1
 CFLAGS = -D ERROR_LEVEL=${ERROR_LEVEL} -g ${INCLUDE_DIRS} -D_QNX -DUNIX
 AUV_BIN_DIR = ../../onboard/bin
 all: XPortIO.qnx
 targets = charger
endif

ifeq ($(shell echo $(HOST_OS) | grep -c CYGWIN), 1)
 CYGWIN := 1
 CFLAGS = -D ERROR_LEVEL=${ERROR_LEVEL} -g ${INCLUDE_DIRS} -Wall
 AUV_BIN_DIR = $(HOME)/bin
 all: XPortIO.cygwin
 targets = XPortIO.exe
endif

objects = XPortIO.o

.PHONY: XPortIO.cygwin
XPortIO.cygwin: $(objects)
	$(CC) $(CFLAGS) -o XPortIO $(objects)

.PHONY: XPortIO.qnx
XPortIO.qnx: $(objects)
	$(CC) -N 128K $(CFLAGS) -o XPortIO $(objects)

%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@@

.PHONY: clean
clean:
	-rm *~ $(objects) XPortIO XPortIO.exe 

.PHONY: cleanlogs
cleanlogs:
	-rm *.log

install: $(targets)
	cp -f $(targets) $(AUV_BIN_DIR)/.


@
