/* Copyright (c) 1993 UNIX System Laboratories, Inc. */ /* All Rights Reserved */ /* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */ /* UNIX System Laboratories, Inc. */ /* The copyright notice above does not evidence any */ /* actual or intended publication of such source code. */ /* Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */ /* Copyright (c) 1988, 1990 AT&T */ /* All Rights Reserved */ /* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */ /* UNIX System Laboratories, Inc. */ /* The copyright notice above does not evidence any */ /* actual or intended publication of such source code. */ #ident "@(#)make:rules.c 1.20" /* DEFAULT RULES FOR UNIX ** ** These are the internal rules that "make" trucks around with it at ** all times. One could completely delete this entire list and just ** conventionally define a global "include" makefile which had these ** rules in it. That would make the rules dynamically changeable ** without recompiling make. This file may be modified to local ** needs. */ char *builtin[] = { ".SUFFIXES: .o .c .c~ .y .y~ .l .l~ .s .s~ .sh .sh~ .h .h~ .f .f~ \ .C .C~ .Y .Y~ .L .L~", /* PRESET VARIABLES */ "MAKE=make", "BUILD=build", "AR=ar", "ARFLAGS=rv", "AS=as", "ASFLAGS=", "CC=cc", "CFLAGS=-O", "F77=f77", "FFLAGS=-O", "GET=get", "GFLAGS=", "LD=ld", "LDFLAGS=", "LEX=lex", "LFLAGS=", "YACC=yacc", "YFLAGS=", "C++C=CC", "C++FLAGS=-O", /* SINGLE SUFFIX RULES */ ".c:", "\t$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)", ".c~:", "\t$(GET) $(GFLAGS) $<", "\t$(CC) $(CFLAGS) -o $@ $*.c $(LDFLAGS)", "\t-rm -f $*.c", ".f:", "\t$(F77) $(FFLAGS) -o $@ $< $(LDFLAGS)", ".f~:", "\t$(GET) $(GFLAGS) $<", "\t$(F77) $(FFLAGS) -o $@ $*.f $(LDFLAGS)", "\t-rm -f $*.f", ".s:", "\t$(AS) $(ASFLAGS) -o $*.o $<", "\t$(CC) -o $@ $*.o $(LDFLAGS)", "\t-rm -f $*.o", ".s~:", "\t$(GET) $(GFLAGS) $<", "\t$(AS) $(ASFLAGS) -o $*.o $*.s", "\t$(CC) -o $* $*.o $(LDFLAGS)", "\t-rm -f $*.[so]", ".sh:", "\tcp $< $@; chmod +x $@", ".sh~:", "\t$(GET) $(GFLAGS) $<", "\tcp $*.sh $*; chmod +x $@", "\t-rm -f $*.sh", ".C:", "\t$(C++C) $(C++FLAGS) -o $@ $< $(LDFLAGS)", ".C~:", "\t$(GET) $(GFLAGS) $<", "\t$(C++C) $(C++FLAGS) -o $@ $*.C $(LDFLAGS)", "\t-rm -f $*.C", /* DOUBLE SUFFIX RULES */ ".c.a:", "\t$(CC) $(CFLAGS) -c $<", "\t$(AR) $(ARFLAGS) $@ $( markfile.c", "\t$(CC) -c markfile.c", "\t-rm -f markfile.c", 0 };