#
# $Id: Makefile,v 1.1 1998/10/27 14:23:58 peter Exp $
# Copyright (c) 1998 by the Free Pascal Development Team
#
# Makefile for XTDLIB/FPC, modified version of the FreeVision makefile system.
#
# See the file docs/COPYING.TXT, included in this distribution,
# for details about the copyright.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
#####################################################################
# Defaults
#####################################################################
# Where are the files located
MAKEFILEFPC=./makefile.fpc
#RTL=
INC=libsrc
#PROCINC=
OSINC=inc/$(OS_TARGET)
# Add this dir also to the path as first
UNITDIR=.
# Where need we to place the executables/ppu/objects
TARGETDIR=.
#UNITTARGETDIR=obj
#####################################################################
# Real targets
#####################################################################
override PPEXT=.pp
vpath %$(PPEXT) libsrc devel
#####################################################################
# Include default makefile
#####################################################################
include $(MAKEFILEFPC)
#####################################################################
# Dependencies
#####################################################################
# a lot of targets...
# First all directory isolated, and libsrc both normal as smartlinking.
demos:
		make -C demo
tomdemos :
	make -C tom_demo
libs:
		make -C libsrc
devel:
		make -C devel
smartlibs:
	make -C libsrc clean
	make -C libsrc SMARTLINK=YES LIBNAME=xtdfpc
#
# Make all'ish targets + clean
#
clean:
	make -C libsrc clean
	make -C devel clean
	make -C demo clean
	make -C tom_demo clean
	-$(DEL)  demo/*.inc
all:
		make -C libsrc
		make -C devel
		make -C demo
	make -C tom_demo
smart:
		make clean
	make -C libsrc SMARTLINK=YES LIBNAME=xtdfpc
		make -C devel
		make -C demo OPT='-XSs'
		make -C tom_demo OPT='-XDs'
#
# Same as smartlinking, but link with dynamical libfpc.so
#
smartdyn:
		make clean
		make -C libsrc SMARTLINK=YES LIBNAME=xtdfpc
		make -C devel
		make -C demo OPT='-Cx -XDs'
#
#
# $Log: Makefile,v $
# Revision 1.1.1    Marco, adapted FV makefiles for own libs
#
# Revision 1.1    1998/10/27 14:23:58  peter
#				+ makefiles
#