# $Id: PTMakefile,v 1.7 2000/07/11 23:50:26 carlo Exp $ # # ProtoType Base Makefile # # Copyright (C) 1999-2000, by # # Carlo Wood, Run on IRC # RSA-1024 0x624ACAD5 1997-01-26 Sign & Encrypt # Fingerprint16 = 32 EC A7 B6 AC DB 65 A6 F6 F6 55 DD 1C DC FF 61 # # All rights reserved. # # See the file LICENSE for copyright information. # # This file may be distributed under the terms of the Q Public License 1.0 # as defined by Troll Tech AS of Norway and appearing in the file LICENSE.QPL # included in the packaging of this file. # #----------------------------------------------------------------------------- # # Edit $PROTODIR/Makedefs.h to get it working for your system # BASEDIR=. include $(PROTODIR)/Makedefs.h .PHONY: all build clean depend real-clean .clean .SUFFIXES: all: build build:: @list='$(SUBDIRS)'; for i in $$list; do $(MAKE) -r -C $$i build || exit; done .clean: $(RM) -f *.orig lib/*.a lib/lib*.so* clean:: .clean @list='$(SUBDIRS)'; for i in $$list; do $(MAKE) -r -C $$i clean; done depend:: @list='$(SUBDIRS)'; for i in $$list; do $(MAKE) -r -C $$i depend || exit; done real-clean:: .clean @list='$(SUBDIRS)'; for i in $$list; do $(MAKE) -r -C $$i real-clean; done find . -name '*.orig' -print | xargs rm -f find . -name '*.o' -print | xargs rm -f find . -name core -print | xargs rm -f find . -name '.*' ! -name '.' ! -name '..' ! -name '.*.version*' ! -name '.cvsignore' -print | xargs rm -rf find . -name troep -print | xargs rm -f (files=`find . -type f -perm +111 -print`;\ for i in $$files; do \ RES=`file $$i`; \ if expr match "$$RES" ".*ELF.*executable" > /dev/null; then \ rm -f $$i; \ fi; \ done)