view portasm/gen-masm.sh @ 635:840a870c093c

- add flag to configure.bat to generate *nix makefiles (can be used to gen a mostly working *nix make build env run with batch, not logical but useful in some zombie setups)
author Tassilo Philipp
date Sun, 20 Nov 2022 22:14:39 +0100
parents ab2d78e48ca2
children
line wrap: on
line source

#!/bin/sh
`which gcc || which clang` -E -P -DGEN_MASM ${1:?Usage: $0 <name> [<outsuffix>]}.S \
	| sed "/^$/d;1i\\
; auto-generated by `basename $0`
;s/$/
/" \
	> $1$2.asm