#
# Makefile for simple CiAO test programs
#

# Expected Environent:
#
# CIAOBASE:    directory with the CiAO os source (i.e., the trunk/os subdirectory)

CIAOVARIANT := $(CIAOBASE)/kconf/config

ifeq ($(CIAOBASE),)
  CIAOBASE := $(error Environment variable CIAOBASE is not set)
endif

# default target 
default : all

APP     := $(shell basename $(PWD))

KCONF_ROOT := $(CIAOBASE)/kconf
CONFIGDIR=$(KCONF_ROOT)/config

QCONF=$(KCONF_ROOT)/ciao-kconfig/scripts/kconfig/qconf
CAM=$(KCONF_ROOT)/common/scripts/app_create_model.pl
TRANSFORM=$(KCONF_ROOT)/common/scripts/transform.pl

.PHONY: all clean distclean xconfig transform
all:

xconfig:
	$(QCONF) app.fm app.config

transform:
	$(TRANSFORM) -f app.config -s app.configspace.pl -i $(CIAOBASE)/os -o $(CONFIGDIR)

