# $Id: PTMakefile,v 1.8 2000/02/06 01:15:08 carlo Exp $
#
# ProtoType Main Makefile
#
# Copyright (C) 1999-2000, by
#
# Carlo Wood, Run on IRC <carlo@alinoe.com>
# 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
#
GETSUBOBJS="yes"
include $(PROTODIR)/common/PTMakefile
%.o: %.c Makefile $(PROTODIR)/Makedefs.h
$(CC) $(CFLAGS) $(IFLAGS) $(SYSTEMINCLUDEFLAGS) -c $< -o $@
%.o: %$(CPPEXT) Makefile $(PROTODIR)/Makedefs.h
$(CXX) $(CXXFLAGS) $(IFLAGS) $(SYSTEMINCLUDEFLAGS) -c $< -o $@
build:: .depend-timestamp $(OBJS) subdirs $(MAIN)
$(SUBOBJS):
$(MAKE) subdirs
# Assume all libraries are up to date
$(MAIN): $(OBJS) $(EXTRA_OBJS) $(SUBOBJS)
ifneq ($(CXXSRC),)
$(CXX) $(LDFLAGS) $(OBJS) $(EXTRA_OBJS) $(SUBOBJS) $(STATICLIBS) $(LIBFLAGS) $(SHAREDLIBS) -o $(MAIN)
else
$(CC) $(LDFLAGS) $(OBJS) $(EXTRA_OBJS) $(SUBOBJS) $(STATICLIBS) $(LIBFLAGS) $(SHAREDLIBS) -o $(MAIN)
endif
$(CHMOD) $(MODE) $(MAIN)
clean::
$(RM) -f $(MAIN) gmon.out
syntax highlighted by Code2HTML, v. 0.9.1