# BePascal - A pascal wrapper around the BeOS API # Copyright (C) 2002-2003 Olivier Coursiere # Matt Emson # Eric Jourde # Oscar Lesta # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library General Public # License as published by the Free Software Foundation; either # version 2 of the License, or (at your option) any later version. # # This library 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. See the GNU # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this library; if not, write to the Free # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # handle pascal files in the Object rule rule UserObject { switch $(2) { case *.pp : fpc $(1) : $(2) ; } } rule fpc { echo $(1) ; echo $(2) ; Depends $(1) : $(2) ; PPUFILES += $(2)u ; # try to clean ppu files (don't work yet) Clean clean : $(2)u ; echo $(2)u ; echo $(LOCATE_TARGET) ; echo $(PPUFILES) ; } # call the FreePascal compiler actions fpc { fpc -FU$(LOCATE_TARGET) -g -S2 $(2) } # Make a zip file named $(1) that include (recursively) all files in the directory list $(2), except the ones # in the CVS subdirectories rule MakeZip { Depends all : $(1) ; Clean clean : $(DISTRIB_DIR)/$(1) ; } actions MakeZip { zip $(DISTRIB_DIR)/$(1) -r $(2) -x \*CVS\* }