100 lines
3.9 KiB
Plaintext
100 lines
3.9 KiB
Plaintext
|
#ident "@(#)rules.top 1.23 17/05/09 "
|
||
|
###########################################################################
|
||
|
# Written 1996 by J. Schilling
|
||
|
###########################################################################
|
||
|
#
|
||
|
# Rules that should be included at top of every Makefile
|
||
|
# This is the general purpose C-language version
|
||
|
#
|
||
|
###########################################################################
|
||
|
# Copyright (c) J. Schilling
|
||
|
###########################################################################
|
||
|
# The contents of this file are subject to the terms of the
|
||
|
# Common Development and Distribution License, Version 1.0 only
|
||
|
# (the "License"). You may not use this file except in compliance
|
||
|
# with the License.
|
||
|
#
|
||
|
# See the file CDDL.Schily.txt in this distribution for details.
|
||
|
# A copy of the CDDL is also available via the Internet at
|
||
|
# http://www.opensource.org/licenses/cddl1.txt
|
||
|
#
|
||
|
# When distributing Covered Code, include this CDDL HEADER in each
|
||
|
# file and include the License file CDDL.Schily.txt from this distribution.
|
||
|
###########################################################################
|
||
|
#
|
||
|
# Make sure this becomes the default target
|
||
|
#
|
||
|
###########################################################################
|
||
|
all:
|
||
|
|
||
|
###########################################################################
|
||
|
#
|
||
|
# First make sure that all symlinks in $(SRCROOT)/$(RULESDIR)/ are present
|
||
|
#
|
||
|
# $(DUMMY_LNK) is needed to work around a Sun make bug that has been
|
||
|
# fixed with Solaris 11 but that is present for all old Solaris versions.
|
||
|
#
|
||
|
###########################################################################
|
||
|
_DUMMY_LNK= $(SRCROOT)/$(RULESDIR)/ldummy.lnk
|
||
|
DUMMY_LNK= $(_DUMMY_LNK:./%=%)
|
||
|
|
||
|
$(DUMMY_LNK):
|
||
|
@echo " ==> MAKING SYMLINKS in $(SRCROOT)/$(RULESDIR)/" && \
|
||
|
cd $(SRCROOT)/$(RULESDIR) && sh ./MKLINKS
|
||
|
@echo " ==> MAKING SYMLINKS in $(SRCROOT)/TEMPLATES/" && \
|
||
|
cd $(SRCROOT)/TEMPLATES && sh ./MKLINKS
|
||
|
|
||
|
include $(DUMMY_LNK)
|
||
|
|
||
|
###########################################################################
|
||
|
#
|
||
|
# SunPro make and gmake both include a COMPILE.c in the built in rules.
|
||
|
# Clear this here, to avoid trouble. We are still able to use COMPILE.c=
|
||
|
# command line macros to overwrite this.
|
||
|
#
|
||
|
###########################################################################
|
||
|
COMPILE.c=
|
||
|
|
||
|
###########################################################################
|
||
|
#
|
||
|
# SunPro make and gmake both include a COMPILE.cc in the built in rules.
|
||
|
# Clear this here, to avoid trouble. We are still able to use COMPILE.cc=
|
||
|
# command line macros to overwrite this.
|
||
|
#
|
||
|
###########################################################################
|
||
|
COMPILE.cc=
|
||
|
|
||
|
###########################################################################
|
||
|
#
|
||
|
# Include global language independent macros
|
||
|
#
|
||
|
###########################################################################
|
||
|
include $(SRCROOT)/$(RULESDIR)/rules1.top
|
||
|
|
||
|
###########################################################################
|
||
|
#
|
||
|
# Workaround for GNU make design bug (include does not trigger rule evaluation)
|
||
|
# A correctly working "make" did create the symlinks already while
|
||
|
# including "ldummy.lnk" above.
|
||
|
#
|
||
|
###########################################################################
|
||
|
$(SRCROOT)/$(RULESDIR)/$(XARCH).rul: $(SRCROOT)/$(RULESDIR)/ldummy.lnk
|
||
|
|
||
|
###########################################################################
|
||
|
#
|
||
|
# Include platform dependent macros for C-language here.
|
||
|
#
|
||
|
# If a project needs other languages too, additional rules may be defined.
|
||
|
# These additional rules should be placed in a file that uses a hierarchy
|
||
|
# similar to rules.top and mey be called e.g. yacc.top.
|
||
|
#
|
||
|
###########################################################################
|
||
|
include $(SRCROOT)/$(RULESDIR)/$(XARCH).rul
|
||
|
|
||
|
###########################################################################
|
||
|
#
|
||
|
# Include global autofonfiguration rules
|
||
|
#
|
||
|
###########################################################################
|
||
|
include $(SRCROOT)/$(RULESDIR)/rules.cnf
|