make.rules.file revision 10d63b7db37a83b39c7f511cf9426c9d03ea0760
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# CDDL HEADER START
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# The contents of this file are subject to the terms of the
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Common Development and Distribution License (the "License").
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# You may not use this file except in compliance with the License.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# See the License for the specific language governing permissions
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# and limitations under the License.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# When distributing Covered Code, include this CDDL HEADER in each
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# If applicable, add the following below this CDDL HEADER, with the
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# fields enclosed by brackets "[]" replaced with your own identifying
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# CDDL HEADER END
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Use is subject to license terms.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweSUFFIXES = .o .c .c~ .cc .cc~ .y .y~ .l .l~ .s .s~ .sh .sh~ .S .S~ .i .ln \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe .h .h~ .f .f~ .for .for~ .F .F~ .f90 .f90~ .ftn .ftn~ .mod .mod~ \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe .sym .def .def~ .p .p~ .r .r~ .cps .cps~ .C .C~ .Y .Y~ .L .L~ \
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe .java .java~ .class
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe.SUFFIXES: $(SUFFIXES)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# OUTPUT_OPTION should be defined to "-o $@" when
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# the default rules are used for non-local files.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweOUTPUT_OPTION=
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# C language section.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweCOMPILE.c=$(CC) $(CFLAGS) $(CPPFLAGS) -c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweLINK.c=$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweLINT.c=$(LINT) $(LINTFLAGS) $(CPPFLAGS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINK.c) -o $@ $< $(LDLIBS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $*.c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.c) $(OUTPUT_OPTION) $<
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(CC) $(CFLAGS) -c $*.c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(CC) $(CFLAGS) $(CPPFLAGS) -P $<
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(CC) $(CFLAGS) $(CPPFLAGS) -P $*.c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINT.c) $(OUTPUT_OPTION) -c $<
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINT.c) $(OUTPUT_OPTION) -c $*.c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# C language section. yacc.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweYACC.y=$(YACC) $(YFLAGS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.y
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(YACC) $(YFLAGS) $*.y
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.y
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(YACC) $(YFLAGS) $*.y
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.y
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.y
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(YACC) $(YFLAGS) $*.y
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(CC) $(CFLAGS) -c y.tab.c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# C language section. lex.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweLEX.l=$(LEX) $(LFLAGS) -t
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINK.c) -o $@ $*.c -ll $(LDLIBS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.l
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LEX) $(LFLAGS) $*.l
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(CC) $(CFLAGS) -c lex.yy.c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.l
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LEX) $(LFLAGS) $*.l
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINT.c) -o $@ -i $*.c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.l
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LEX.l) $*.l > $*.c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINT.c) -o $@ -i $*.c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.l
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LEX) $(LFLAGS) $*.l
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(CC) $(CFLAGS) -c lex.yy.c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# C++ language section.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweCOMPILE.cc=$(CCC) $(CCFLAGS) $(CPPFLAGS) -c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweLINK.cc=$(CCC) $(CCFLAGS) $(CPPFLAGS) $(LDFLAGS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweCOMPILE.C=$(CCC) $(CCFLAGS) $(CPPFLAGS) -c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweLINK.C=$(CCC) $(CCFLAGS) $(CPPFLAGS) $(LDFLAGS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINK.cc) -o $@ $< $(LDLIBS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.cc
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINK.cc) -o $@ $*.cc $(LDLIBS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.cc) $(OUTPUT_OPTION) $<
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.cc
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.cc) $(OUTPUT_OPTION) $*.cc
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(CCC) $(CCFLAGS) $(CPPFLAGS) -P $<
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.cc
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(CCC) $(CCFLAGS) $(CPPFLAGS) -P $*.cc
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.cc
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.cc) -o $% $*.cc
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINK.C) -o $@ $< $(LDLIBS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.C
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINK.C) -o $@ $*.C $(LDLIBS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.C) $(OUTPUT_OPTION) $<
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.C
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.C) $(OUTPUT_OPTION) $*.C
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(CCC) $(CCFLAGS) $(CPPFLAGS) -P $<
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.C
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(CCC) $(CCFLAGS) $(CPPFLAGS) -P $*.C
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.C
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# FORTRAN section.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweCOMPILE.f=$(FC) $(FFLAGS) -c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweLINK.f=$(FC) $(FFLAGS) $(LDFLAGS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweCOMPILE.F=$(FC) $(FFLAGS) $(CPPFLAGS) -c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweLINK.F=$(FC) $(FFLAGS) $(CPPFLAGS) $(LDFLAGS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINK.f) -o $@ $< $(LDLIBS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.f
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $*.f
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.f) $(OUTPUT_OPTION) $<
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.f
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(FC) $(FFLAGS) -c $*.f
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.f
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINK.f) -o $@ $< $(LDLIBS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.for
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $*.for
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.f) $(OUTPUT_OPTION) $<
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.for
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(FC) $(FFLAGS) -c $*.for
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.for
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.f) -o $% $*.for
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINK.F) -o $@ $< $(LDLIBS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.F
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $*.F
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.F) $(OUTPUT_OPTION) $<
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.F
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(FC) $(FFLAGS) -c $*.F
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.F
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# FORTRAN section. ratfor.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweCOMPILE.r=$(FC) $(FFLAGS) $(RFLAGS) -c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweLINK.r=$(FC) $(FFLAGS) $(RFLAGS) $(LDFLAGS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINK.r) -o $@ $< $(LDLIBS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.r
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINK.r) -o $@ $*.r $(LDLIBS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.r) $(OUTPUT_OPTION) $<
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.r
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.r) $(OUTPUT_OPTION) $*.r
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.r
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# FORTRAN 90 section.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweCOMPILE.f90=$(F90C) $(F90FLAGS) -c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweLINK.f90=$(F90C) $(F90FLAGS) $(LDFLAGS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweCOMPILE.ftn=$(F90C) $(F90FLAGS) -c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweLINK.ftn=$(F90C) $(F90FLAGS) $(LDFLAGS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINK.f90) -o $@ $< $(LDLIBS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.f90
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINK.f90) -o $@ $*.f90 $(LDLIBS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.f90) $(OUTPUT_OPTION) $<
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.f90
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.f90) $(OUTPUT_OPTION) $*.f90
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.f90
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.f90) -o $% $*.f90
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINK.ftn) -o $@ $< $(LDLIBS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.ftn
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINK.ftn) -o $@ $*.ftn $(LDLIBS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.ftn) $(OUTPUT_OPTION) $<
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.ftn
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.ftn) $(OUTPUT_OPTION) $*.ftn
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.ftn
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.ftn) -o $% $*.ftn
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Modula-2 section.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweCOMPILE.def=$(M2C) $(M2FLAGS) $(DEFFLAGS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweCOMPILE.mod=$(M2C) $(M2FLAGS) $(MODFLAGS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.def
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.def) -o $@ $*.def
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.mod) -o $@ -e $@ $<
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.mod
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.mod) -o $@ -e $@ $*.mod
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.mod
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.mod) -o $@ $*.mod
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.mod
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.mod) -o $% $*.mod
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Pascal section.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweCOMPILE.p=$(PC) $(PFLAGS) $(CPPFLAGS) -c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweLINK.p=$(PC) $(PFLAGS) $(CPPFLAGS) $(LDFLAGS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINK.p) -o $@ $< $(LDLIBS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.p
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(LINK.p) -o $@ $*.p $(LDLIBS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.p) $(OUTPUT_OPTION) $<
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.p
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(COMPILE.p) $(OUTPUT_OPTION) $*.p
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.p
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Assembly section.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweCOMPILE.s=$(AS) $(ASFLAGS)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweCOMPILE.S=$(CC) $(ASFLAGS) $(CPPFLAGS) -c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.s
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.s
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.S
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.S
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(AR) $(ARFLAGS) $@ $%
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Shell section.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.sh
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe chmod a+x $@
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# NeWS section
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(CPS) $(CPSFLAGS) $*.cps
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.cps
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(CPS) $(CPSFLAGS) $*.cps
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# JAVA section
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(JAVAC) $(JAVACFLAGS) $<
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe.java~.class:
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) -p $< > $*.java
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(JAVAC) $(JAVACFLAGS) $<
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Miscellaneous section.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe echo "static char _sccsid[] = \"`grep @'(#)' markfile`\";" > markfile.c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard LoweSCCSGETFLAGS=-s
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe sccs $(SCCSFLAGS) get $(SCCSGETFLAGS) $@ -G$@
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe.SCCS_GET_POSIX:
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe sccs $(SCCSFLAGS) get $(SCCSGETFLAGS) $@
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe $(GET) $(GFLAGS) s.$@