# VXI Technology
# Copyright 2004
# Nick Barendt
#
# Makefile to build the client apps for the EX1629

# general compilation and linker variables
EX1629_SRC_DIR = $(strip $(shell pwd) )
export SHARED_DIR = $(EX1629_SRC_DIR)/shared
export LIBEX1629_DIR = $(EX1629_SRC_DIR)/libex1629
export CLIENT_DIR = $(EX1629_SRC_DIR)/client
export CAL_DIR = $(EX1629_SRC_DIR)/cal

export LIBEX1629_LIB = $(LIBEX1629_DIR)/libex1629.a
export CALFILE_LIB = $(CAL_DIR)/calfile.a

export CLIENT_DISTRIB = y

export CFLAGS += -Wall -O3 -I/$(SHARED_DIR) 
export SHARED_DIR = $(EX1629_SRC_DIR)/shared

# update VPATH so make can find everything it needs
export VPATH += $(SHARED_DIR)

export TARGET_FS_ROOT = ..

all:	
	-test ! -d bin && mkdir bin
	make -C shared
	make -C libex1629
	make -C client
	make -C client install

clean:
	make -C shared clean
	make -C libex1629 clean
	make -C client clean
	rm -rf bin

