...
This commit is contained in:
parent
bcecb67685
commit
3842a1a9ff
30
Makefile
30
Makefile
|
@ -1,5 +1,5 @@
|
||||||
#procs != nproc
|
procs != nproc
|
||||||
#MAKEFLAGS = --jobs=$(procs)
|
MAKEFLAGS = --jobs=$(procs)
|
||||||
|
|
||||||
UNAME != uname
|
UNAME != uname
|
||||||
|
|
||||||
|
@ -75,10 +75,14 @@ edirs += ./source/engine/thirdparty/Chipmunk2D/include ./source/engine/thirdpart
|
||||||
includeflag != $(call prefix,$(edirs) $(eddirs) $(pindirs) $(bsdirs),-I)
|
includeflag != $(call prefix,$(edirs) $(eddirs) $(pindirs) $(bsdirs),-I)
|
||||||
COMPINCLUDE = $(edirs) $(eddirs) $(pindirs) $(bsdirs)
|
COMPINCLUDE = $(edirs) $(eddirs) $(pindirs) $(bsdirs)
|
||||||
|
|
||||||
#COMPILER_FLAGS specifies the additional compilation options we're using
|
|
||||||
|
|
||||||
WARNING_FLAGS = -Wno-everything#-Wall -Wextra -Wwrite-strings -Wno-unused-parameter -Wno-unused-function -Wno-missing-braces -Wno-incompatible-function-pointer-types -Wno-gnu-statement-expression -Wno-complex-component-init -pedantic
|
WARNING_FLAGS = -Wno-everything#-Wall -Wextra -Wwrite-strings -Wno-unused-parameter -Wno-unused-function -Wno-missing-braces -Wno-incompatible-function-pointer-types -Wno-gnu-statement-expression -Wno-complex-component-init -pedantic
|
||||||
#COMPILER_FLAGS = $(includeflag) -g -O0 $(WARNING_FLAGS) -DGLEW_STATIC -D_GLFW_X11 -D_POSIX_C_SOURCE=1993809L -c -MMD -MP $< -o $@
|
|
||||||
COMPILER_FLAGS = $(includeflag) -I/usr/local/include -g -O0 $(WARNING_FLAGS) -DGLEW_STATIC -D_GLFW_X11 -D_POSIX_C_SOURCE=1993809L -c $< -o $@
|
|
||||||
|
|
||||||
|
COMPILER_FLAGS = $(includeflag) -I/usr/local/include -g -O0 $(WARNING_FLAGS) -MD -c $< -o $@
|
||||||
|
#-D_POSIX_C_SOURCE=1993809L
|
||||||
|
|
||||||
LIBPATH = -L./bin -L/usr/local/lib -L/usr/local/lib/tcc
|
LIBPATH = -L./bin -L/usr/local/lib -L/usr/local/lib/tcc
|
||||||
|
|
||||||
|
@ -89,8 +93,8 @@ ifeq ($(UNAME), Windows_NT)
|
||||||
CLIBS = glew32
|
CLIBS = glew32
|
||||||
EXT = .exe
|
EXT = .exe
|
||||||
else
|
else
|
||||||
LINKER_FLAGS = -fPIC -rdynamic
|
LINKER_FLAGS = -fuse-ld=lld #/usr/local/lib/tcc/bcheck.o /usr/local/lib/tcc/bt-exe.o /usr/local/lib/tcc/bt-log.o
|
||||||
ELIBS = m c engine editor glfw3
|
ELIBS = m c engine editor glfw3 tcc1
|
||||||
CLIBS =
|
CLIBS =
|
||||||
EXT =
|
EXT =
|
||||||
endif
|
endif
|
||||||
|
@ -117,22 +121,22 @@ LINK = $(LIBPATH) $(LINKER_FLAGS) $(LELIBS) -o $@
|
||||||
|
|
||||||
engine: $(yuginec:.%.c=$(objprefix)%.o) $(ENGINE)
|
engine: $(yuginec:.%.c=$(objprefix)%.o) $(ENGINE)
|
||||||
@echo Linking engine
|
@echo Linking engine
|
||||||
@$(CC) $^ $(LINK)
|
@$(CC) $@ $(LINK)
|
||||||
@echo Finished build
|
@echo Finished build
|
||||||
|
|
||||||
editor: $(yuginec:.%.c=$(objprefix)%.o) $(EDITOR) $(ENGINE)
|
editor: $(yuginec:.%.c=$(objprefix)%.o) $(EDITOR) $(ENGINE)
|
||||||
@echo Linking editor
|
@echo Linking editor
|
||||||
$(CC) $^ $(LINK)
|
@$(CC) $^ $(LINK)
|
||||||
@echo Finished build
|
@echo Finished build
|
||||||
|
|
||||||
$(ENGINE): $(eobjects) bin/libglfw3.a
|
$(ENGINE): $(eobjects) bin/libglfw3.a
|
||||||
@echo Making library engine.a
|
@echo Making library engine.a
|
||||||
@ar -r $(ENGINE) $^
|
@ar r $(ENGINE) $(eobjects)
|
||||||
@cp -u -r $(ehead) $(INCLUDE)
|
@cp -u -r $(ehead) $(INCLUDE)
|
||||||
|
|
||||||
$(EDITOR): $(edobjects)
|
$(EDITOR): $(edobjects)
|
||||||
@echo Making editor library
|
@echo Making editor library
|
||||||
@ar -r $(EDITOR) $^
|
@ar r $(EDITOR) $^
|
||||||
@cp -u -r $(edhead) $(INCLUDE)
|
@cp -u -r $(edhead) $(INCLUDE)
|
||||||
|
|
||||||
xbrainstorm: $(bsobjects) $(ENGINE) $(EDITOR)
|
xbrainstorm: $(bsobjects) $(ENGINE) $(EDITOR)
|
||||||
|
@ -147,8 +151,8 @@ pinball: $(ENGINE) $(pinobjects)
|
||||||
|
|
||||||
bin/libglfw3.a:
|
bin/libglfw3.a:
|
||||||
@echo Making GLFW
|
@echo Making GLFW
|
||||||
make glfw/build
|
@make glfw/build
|
||||||
cp glfw/build/src/libglfw3.a bin/libglfw3.a
|
@cp glfw/build/src/libglfw3.a bin/libglfw3.a
|
||||||
|
|
||||||
$(objprefix)/%.o:%.c
|
$(objprefix)/%.o:%.c
|
||||||
@mkdir -p $(@D)
|
@mkdir -p $(@D)
|
||||||
|
|
8
source/engine/thirdparty/pl_mpeg/pl_mpeg.c
vendored
8
source/engine/thirdparty/pl_mpeg/pl_mpeg.c
vendored
|
@ -2823,10 +2823,10 @@ static const uint8_t PLM_AUDIO_QUANT_LUT_STEP_1[2][16] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Quantizer lookup, step 2: bitrate class, sample rate -> B2 table idx, sblimit
|
// Quantizer lookup, step 2: bitrate class, sample rate -> B2 table idx, sblimit
|
||||||
static const uint8_t PLM_AUDIO_QUANT_TAB_A = (27 | 64); // Table 3-B.2a: high-rate, sblimit = 27
|
#define PLM_AUDIO_QUANT_TAB_A (27 | 64) // Table 3-B.2a: high-rate, sblimit = 27
|
||||||
static const uint8_t PLM_AUDIO_QUANT_TAB_B = (30 | 64); // Table 3-B.2b: high-rate, sblimit = 30
|
#define PLM_AUDIO_QUANT_TAB_B (30 | 64) // Table 3-B.2b: high-rate, sblimit = 30
|
||||||
static const uint8_t PLM_AUDIO_QUANT_TAB_C = 8; // Table 3-B.2c: low-rate, sblimit = 8
|
#define PLM_AUDIO_QUANT_TAB_C 8 // Table 3-B.2c: low-rate, sblimit = 8
|
||||||
static const uint8_t PLM_AUDIO_QUANT_TAB_D = 12; // Table 3-B.2d: low-rate, sblimit = 12
|
#define PLM_AUDIO_QUANT_TAB_D 12 // Table 3-B.2d: low-rate, sblimit = 12
|
||||||
|
|
||||||
static const uint8_t QUANT_LUT_STEP_2[3][3] = {
|
static const uint8_t QUANT_LUT_STEP_2[3][3] = {
|
||||||
//44.1 kHz, 48 kHz, 32 kHz
|
//44.1 kHz, 48 kHz, 32 kHz
|
||||||
|
|
Loading…
Reference in a new issue