#
# $Id: Makefile 8235 2008-01-25 20:40:49Z vszakats $
#

ifeq ($(HB_MAIN),)
HB_MAIN = std
endif

ROOT = ../../../

CONTRIBS=\
	hb_btree\

LIBS=\
	hbdebug \
	hbvm \
	hbrtl \
	hblang \
	hbrdd \
	hbrtl \
	hbvm \
	hbmacro \
	hbpp \
	hbcommon \

ifeq ($(PM),)
  PM := $(pm)
endif

ifeq ($(PM),) # PM not defined = build all files

PRG_SOURCES=\
	test.prg \
	ttest.prg \

PRG_HEADERS=\
	hb_btree.ch

C_HEADERS=\
	hb_btree.api

BAD_PRG_SOURCES=\


C_SOURCES=\
	ctest.c \


C_HEADERS=\


BAD_C_SOURCES=\


###include $(TOP)$(ROOT)config/test.cf
include $(TOP)$(ROOT)config/bin.cf

else #PM defined = build specified file

ifneq ($(findstring .prg,$(PM)),)
  PRG_MAIN := $(PM)
else
  ifneq ($(findstring .PRG,$(PM)),)
    PRG_MAIN := $(PM)
  else
    PRG_MAIN := $(PM).prg
  endif
endif
include $(TOP)$(ROOT)config/bin.cf

endif
