*** empty log message ***

This commit is contained in:
David Rose 2000-10-25 02:05:49 +00:00
parent cb457e268c
commit 8bcae783e8
4 changed files with 24 additions and 10 deletions

View File

@ -259,9 +259,14 @@
#defer BISON bison
#defer FLEX flex
// How to invoke sed. Only a few make rules use this. You can
// probably do without it without too much trouble.
#defer SED sed
// How to invoke sed. A handful of make rules use this. Since some
// platforms (specifically, non-Unix platforms like Windows) don't
// have any kind of sed, ppremake performs some limited sed-like
// functions. The default is to use ppremake in this capacity. In
// this variable, $[source] is the name of the file to read, $[target]
// is the name of the file to generate, and $[script] is the one-line
// sed script to run.
#defer SED ppremake -s '$[script]' <$[source] >$[target]
// What directory name (within each source directory) should the .o
// (or .obj) files be written to, for both shared and static sources?

View File

@ -52,6 +52,10 @@
#define install_config_dir $[decygwin %,%,$[install_config_dir]]
#define install_parser_inc_dir $[decygwin %,%,$[install_parser_inc_dir]]
// In the Windows command shell, we need to use double quotes instead
// of single quotes.
#defer SED ppremake -s "$[script]" <$[source] >$[target]
// Define this if we want to make .sbr files.
#defer BROWSEINFO_FLAG /Fr"$[osfilename $[target:%.obj=%.sbr]]"
#defer CFLAGS_SHARED

View File

@ -468,9 +468,9 @@ $[install_lib_dir]\lib$[TARGET]$[dllext].lib : $[st_dir]\lib$[TARGET]$[dllext].l
#forscopes sed_bin_target
#define target $[st_dir]\$[TARGET]
#define source $[SOURCE]
#define script $[COMMAND]
$[target] : $[source]
$[SED] $[COMMAND] $[source] >$[target]
chmod +x $[target]
$[SED]
#define installed_files \
$[install_bin_dir]\$[TARGET]
@ -579,8 +579,10 @@ $[target] : $[source]
#define source $[file]
$[target] : $[source]
$[FLEX] $[LFLAGS] $[if $[YACC_PREFIX],-P$[YACC_PREFIX]] -olex.yy.c $[source]
$[SED] '/#include <unistd.h>/d' lex.yy.c > $[target]
del lex.yy.c
#define source lex.yy.c
#define script /#include <unistd.h>/d
$[SED]
del $[source]
#end file

View File

@ -429,8 +429,9 @@ $[install_lib_dir]/lib$[TARGET].a : $[st_dir]/lib$[TARGET].a
#forscopes sed_bin_target
#define target $[st_dir]/$[TARGET]
#define source $[SOURCE]
#define script $[COMMAND]
$[target] : $[source]
$[SED] $[COMMAND] $[source] >$[target]
$[SED]
chmod +x $[target]
#define installed_files \
@ -540,8 +541,10 @@ $[target] : $[source]
#define source $[file]
$[target] : $[source]
$[FLEX] $[LFLAGS] $[if $[YACC_PREFIX],-P$[YACC_PREFIX]] -olex.yy.c $[source]
$[SED] '/#include <unistd.h>/d' lex.yy.c > $[target]
rm lex.yy.c
#define source lex.yy.c
#define script /#include <unistd.h>/d
$[SED]
rm $[source]
#end file