# $Id: PTMakefile,v 1.9 2000/07/24 21:27:03 carlo Exp $ # # ProtoType Subdirectory 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 # include $(PROTODIR)/common/PTMakefile %.o: %.c $(PROTODIR)/Makedefs.h $(CC) $(CFLAGS) $(IFLAGS) $(SYSTEMINCLUDEFLAGS) -c $< -o $@ %.o: %$(CPPEXT) $(PROTODIR)/Makedefs.h $(CXX) $(CXXFLAGS) $(IFLAGS) $(SYSTEMINCLUDEFLAGS) -c $< -o $@ build:: .depend-timestamp $(OBJS) @list='$(SUBDIRS)'; for i in $$list; do $(MAKE) -C $$i build || exit; done printobjs:: @echo "$(OBJS)" >&5 @list='$(SUBDIRS)'; for i in $$list; do\ for j in `(exec 5>&3; $(MAKE) -C $$i printobjs 1>/dev/null 2>/dev/null) 3>&1`; do\ echo $$i/$$j >&5;\ done;\ done;