Makefile revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
/*
* C preprocessor library
*/
DEBUG ==
/* MAM workaround */
end
t=$(CC.HOSTTYPE)
IFS=.
set x $t
t=$2
set x $(*)
while :
do shift
case $# in
0) break ;;
esac
case $1 in
*probe.$t)
break
esac
done
case $1 in
*) : > $(<)
esac
$(RM) -f $(<)
{
v/^#define [NT]_/d
1,$s/^#define \(T_[A-Z0-9_]*\).*/&\
0a
int
int argc;
char** argv;
{
.
$a
return 0;
}
.
w
q
!
: > 1.$(tmp).c
r $(*:N=*fsm.h)
1,/^#define PROTO/-d
/^#define LAST/,$d
v/^#define/d
1,$s/^#define //
1,$s/.*/ "&", &,/
1i
$("/")*
*$("/")
struct map
{
char* nam;
long val;
};
{
.
$a
};
.
r $(*:N=*def.h)
$("'")a+1,/^#define ADD/-d
/^$/,$d
$("'")a+1,$s/^#define //
$("'")a+1,$s/[ ].*//
$("'")a+1,$s/.*/ "&", &,/
{
.
$a
};
.
r $(*:N=*def.h)
$("'")a+1,/^#define ALLMULTIPLE/-d
/^$/,$d
$("'")a+1,$s/^#define //
$("'")a+1,$s/[ ].*//
$("'")a+1,$s/.*/ "&", &,/
{
.
$a
};
.
r $(*:N=*def.h)
$("'")a+1,/^#define ELSEIF/-d
/^$/,$d
$("'")a+1,$s/^#define //
$("'")a+1,$s/[ ].*//
$("'")a+1,$s/.*/ "&", &,/
{
.
$a
};
.
r $(*:N=*lib.h)
$("'")a+1,/^#define IN_BUFFER/-d
/^$/,$d
$("'")a+1,$s/^#define IN_//
$("'")a+1,$s/[ ].*//
{
.
$a
};
.
w
q
!
fi