-
Notifications
You must be signed in to change notification settings - Fork 16
/
build_opt.sh
executable file
·27 lines (26 loc) · 1.06 KB
/
build_opt.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
set -e
gcc -Wall -Wextra -Werror \
-Wpointer-arith -Wshadow \
-Wno-unknown-warning-option -Wno-address-of-packed-member \
-fno-pie -no-pie -Wa,--noexecstack \
-O3 -DNDEBUG -flto -o beebjit \
asm/asm_abi.c asm/asm_tables.c asm/asm_util.c \
asm/asm_common.c asm/asm_common.S \
asm/asm_inturbo.c asm/asm_inturbo.S \
asm/asm_jit.c asm/asm_jit.S \
os.c \
main.c config.c bbc.c defs_6502.c state.c video.c via.c \
emit_6502.c interp.c inturbo.c state_6502.c sound.c timing.c \
jit_compiler.c jit_metadata.c cpu_driver.c \
jit_optimizer.c jit_opcode.c keyboard.c \
teletext.c render.c mc6850.c serial_ula.c \
log.c test.c adc.c cmos.c joystick.c \
tape.c tape_csw.c tape_uef.c \
intel_fdc.c wd_fdc.c \
disc_drive.c disc.c ibm_disc_format.c disc_tool.c \
disc_fsd.c disc_hfe.c disc_ssd.c disc_adl.c \
disc_rfi.c disc_kryo.c disc_scp.c disc_dfi.c \
debug.c expression.c jit.c \
util.c util_string.c util_container.c util_compress.c \
-lm -lX11 -lXext -lpthread -lasound -lpulse -lpulse-simple