1#ident @(#)rules.cmd 1.18 21/07/11 2########################################################################### 3# Written 1996-2021 by J. Schilling 4########################################################################### 5# 6# Rules for user level commands (usually found in .../bin) 7# 8########################################################################### 9# Copyright (c) J. Schilling 10########################################################################### 11# The contents of this file are subject to the terms of the 12# Common Development and Distribution License, Version 1.0 only 13# (the "License"). You may not use this file except in compliance 14# with the License. 15# 16# See the file CDDL.Schily.txt in this distribution for details. 17# A copy of the CDDL is also available via the Internet at 18# http://www.opensource.org/licenses/cddl1.txt 19# 20# When distributing Covered Code, include this CDDL HEADER in each 21# file and include the License file CDDL.Schily.txt from this distribution. 22########################################################################### 23_EXEEXT= $(EXEEXT) 24_XEXEEXT= $(XEXEEXT) 25########################################################################### 26INSFLAGS += $(STRIPFLAGS) 27########################################################################### 28include $(SRCROOT)/$(RULESDIR)/rules.obj 29include $(SRCROOT)/$(RULESDIR)/rules.dyn 30########################################################################### 31 32_INSMODEI= $(_UNIQ)$(INSMODE) 33__INSMODEI= $(_INSMODEI:$(_UNIQ)=$(INSMODEX)) 34INSMODEI= $(__INSMODEI:$(_UNIQ)%=%) 35 36__LD_OUTPUT_OPTION= $(_UNIQ)$(LD_OUTPUT_OPTION) 37___LD_OUTPUT_OPTION= $(__LD_OUTPUT_OPTION:$(_UNIQ)=-o $@) 38_LD_OUTPUT_OPTION= $(___LD_OUTPUT_OPTION:$(_UNIQ)%=%) 39 40LIBS_PATH += $(LIBS_PATH_STATIC) 41 42all: $(PTARGET) $(MAN) 43 44########################################################################### 45# We used to use $(LDCC) $(_LD_OUTPUT_OPTION) $(POFILES) $(LDFLAGS) $(LDLIBS) 46# but the compiler on z/OS does not like $(LDFLAGS) after $(POFILES). 47########################################################################### 48$(PTARGET): $(OFILES) $(SRCLIBS) 49 $(LDCC) $(_LD_OUTPUT_OPTION) $(LDFLAGS) $(POFILES) $(LDLIBS) 50 51########################################################################### 52include $(SRCROOT)/$(RULESDIR)/sub.htm 53include $(SRCROOT)/$(RULESDIR)/rules.lnt 54include $(SRCROOT)/$(RULESDIR)/rules.clr 55include $(SRCROOT)/$(RULESDIR)/rules.ins 56include $(SRCROOT)/$(RULESDIR)/rules.tag 57include $(SRCROOT)/$(RULESDIR)/rules.hlp 58include $(SRCROOT)/$(RULESDIR)/rules.dep 59include $(SRCROOT)/$(RULESDIR)/rules.cst 60########################################################################### 61