1 /* @(#)rules.c 1.19 09/08/28 Copyright 1987-2009 J. Schilling */ 2 #include <schily/mconfig.h> 3 #ifndef lint 4 static UConst char sccsid[] = 5 "@(#)rules.c 1.19 09/08/28 Copyright 1987-2009 J. Schilling"; 6 #endif 7 /* 8 * Copyright (c) 1987-2009 J. Schilling 9 */ 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 24 #include <schily/stdio.h> 25 #include <schily/standard.h> 26 #include "make.h" 27 28 /* 29 * Default rules complied into make. 30 * 31 * Should rather read in a setup file... 32 */ 33 char implicit_rules[] = 34 35 36 #if defined(unix) || defined(IS_UNIX) || defined(IS_GCC_WIN32) || \ 37 defined(__EMX__) || defined(__BEOS__) || defined(__HAIKU__) || \ 38 defined(__DJGPP__) 39 # define _OS_ 40 41 "\ 42 FC= f77\n\ 43 RC= f77\n\ 44 PC= pc\n\ 45 AS= as\n\ 46 CC= cc\n\ 47 LD= ld\n\ 48 LEX= lex\n\ 49 MAKE= smake\n\ 50 YACCR= yacc -r\n\ 51 YACC= yacc\n\ 52 ROFF= nroff\n\ 53 ASFLAGS=\n\ 54 FFLAGS=\n\ 55 LDFLAGS=\n\ 56 RFLAGS= -ms\n\ 57 YFLAGS=\n\ 58 .o: .c .s .l\n\ 59 $(CC) -c $(CFLAGS) $(CPPFLAGS) $<\n\ 60 $(AS) -o $*.o $(ASFLAGS) $<\n\ 61 $(LEX) $(LFLAGS) $<;$(CC) -c $(CFLAGS) lex.yy.c;rm lex.yy.c;mv lex.yy.o $@\n\ 62 .c: .y\n\ 63 $(YACC) $(YFLAGS) $<;mv y.tab.c $@\n\ 64 \"\": .o .sc\n\ 65 $(CC) -o $* $<\n\ 66 $(ROFF) $(RFLAGS) $< > $@\n"; 67 #endif 68 69 #ifdef tos 70 # define _OS_ 71 72 "\ 73 FC= f77\n\ 74 RC= f77\n\ 75 PC= pc\n\ 76 AS= as\n\ 77 CC= cc\n\ 78 LD= ld\n\ 79 LEX= lex\n\ 80 MAKE= smake\n\ 81 YACCR= yacc -r\n\ 82 YACC= yacc\n\ 83 ROFF= nroff\n\ 84 ASFLAGS=\n\ 85 FFLAGS=\n\ 86 LDFLAGS=\n\ 87 RFLAGS= -ms\n\ 88 .o: .c .s .l\n\ 89 $(CC) -c $(CFLAGS) $(CPPFLAGS) $<\n\ 90 $(AS) -o $*.o $(ASFLAGS) $<\n\ 91 $(LEX) $(LFLAGS) $<;$(CC) -c $(CFLAGS) lexyy.c;rm lexyy.c;mv lexyy.o $@\n\ 92 .c: .y\n\ 93 $(YACC) $(YFLAGS) $<;mv ytab.c $@\n\ 94 \"\": .sc\n\ 95 $(ROFF) $(RFLAGS) $< > $@\n\ 96 .prg .tos .ttp: .o\n\ 97 $(CC) -o $* $<\n"; 98 #endif 99 100 #ifndef _OS_ 101 ""; 102 #endif 103