#-------------------------------------------------------
#
#	Generic Crossplatform Makefile
#
#	Author:	stephen beaulieu <hippo@be.com>
#
#	Questions, comments & concerns to <devsupport@be.com>
#
#	Copyright 1998 Be, Inc.  All Rights Reserved
#
#	Fill out the Project Specific Information section
#	Use a \ to continue information on different lines
#	example: SRCS = source1.cpp \
#					source2.cpp
#
#	When done simply cd to the directory in the terminal
#	and type make.  The objects and binary will appear
#	in an obj.x86 or obj.PPC folder.
#
#--------------------------------------------------------

#--------------------------------------------------------
#	High-level Project Information
#--------------------------------------------------------

#	specify the name of the project
	IMG_NAME	= ArpVT200
	
#	specify the type of image to create
	IMG_TYPE	= SHARED
	
#	specify version of project
	VERSION_CODE	= 4

# first include the common rules for setting up all
# platform-specific information

include ../makefiles/platform

#--------------------------------------------------------
#	Project Specific Information
#--------------------------------------------------------

#	specify the list of source files
	SRCS		= $(shell ls 2>/dev/null -1 ArpVT200*.cpp)
	HEADERS		= $(shell ls 2>/dev/null -1 ArpVT200*.h)

	CFLAGS		= -str pool -ansi strict -bool on -requireprotos
				  
ifeq ($(CPU), PPC)
	CFLAGS		+= -str ro -toc_data on 
endif

#	specify the list of resource files
	RSRCS		= ArpVT200
	
#	specify how to create distribution
	DIST_MAKES = 
	DIST_DESTDIR = add-ons/ArpTerminal/
	DIST_SRCDIR = ArpTermEmu
	DIST_FILES = README
	DIST_SRCS = $(HEADERS) $(SRCS) $(DIST_FILES) Makefile MakeVT200
	
#	specify any additional beos shared libraries needed.
	ADD_BESHLIBS	= 

#	specify additional non-beos shared libraries needed.
	ADD_SHLIBS		= 

#	specify any additional beos static libraries needed.
	ADD_BESTLIBS	= $(CPPLIB)

#	specify additional non-beos static libraries needed.
	ADD_STLIBS		= ../ArpCommon/$(OBJ_DIR)/libArpCommon.a

#	specify any additional system include paths.
	SYSTEM_INCLUDES	=
	SYSLOCAL_INCLUDES	= ../

#	specify any additional local include paths.
	LOCAL_INCLUDES	=

#--------------------------------------------------------
#	Build Rules
#--------------------------------------------------------

# Special rules for copying library into public directory

	DEST_DIR	= add-ons/ArpTerminal/
	PUBLIC_TARGET	= $(DEST_DIR)$(TARGET_NAME)

# define the actual work to be done	

default: $(PUBLIC_TARGET)
	@echo >/dev/null

$(PUBLIC_TARGET): $(TARGET)
	mkdir --parent $(shell dirname $@)
	$(COPY) $< $@
	[ -e $<.xSYM ] || $(COPY) $<.xSYM $@.xSYM > /dev/null 2>&1
	-$(COPY) $<.xMAP $@.xMAP

clean:: clean_project
	rm -f $(PUBLIC_TARGET) $(PUBLIC_TARGET).xSYM $(PUBLIC_TARGET).xMAP $(PUBLIC_TARGET).dbg

dist:: dist_project
	@echo >/dev/null
	
dist::
	echo "Make VT200 distribution"

	# include common build rules for above definitions

include ../makefiles/project

depends: $(DEPENDENCIES)
	@echo >/dev/null
