27 lines
521 B
Bash
27 lines
521 B
Bash
#!/cmd/rc
|
|
if ( ~ 0 $#BUILD_INITIALIZED ) . $JEHANNE/arch/rc/lib/build/utils.rc
|
|
|
|
# user space bootstrapper (first userspace program run)
|
|
$CC \
|
|
init9.c \
|
|
../port/initcode.c \
|
|
-9 \
|
|
-g \
|
|
-Wall \
|
|
-Wno-missing-braces \
|
|
-Wno-parentheses \
|
|
-Wno-unknown-pragmas \
|
|
-O0 \
|
|
-static \
|
|
-fplan9-extensions \
|
|
-ffreestanding \
|
|
-fno-builtin \
|
|
-Tinit.ld \
|
|
'-mcmodel=small' \
|
|
-ljehanne \
|
|
-o init
|
|
$STRIP init
|
|
|
|
TARGET=init
|
|
cat ../build/inith.rc.template |template|rc > init.h
|