mirror of
https://github.com/HackerN64/HackerOoT.git
synced 2026-01-21 10:37:37 -08:00
fix build issues
This commit is contained in:
3
Makefile
3
Makefile
@@ -465,7 +465,6 @@ SPEC_INCLUDES := $(wildcard spec/*.inc)
|
||||
# Baserom to use when creating BPS patches
|
||||
BASEROM_PATCH ?= baseroms/$(VERSION)/baserom.z64
|
||||
|
||||
ifeq ($(COMPILER),gcc)
|
||||
SRC_DIRS := $(shell find src -type d)
|
||||
UNDECOMPILED_DATA_DIRS := $(shell find data -type d)
|
||||
|
||||
@@ -798,7 +797,7 @@ endif
|
||||
$(ELF): $(TEXTURE_FILES_OUT) $(ASSET_FILES_OUT) $(O_FILES) $(OVL_RELOC_FILES) $(UCODE_O_FILES) $(LDSCRIPT) $(BUILD_DIR)/linker_scripts/makerom.ld $(BUILD_DIR)/undefined_syms.txt \
|
||||
$(SAMPLEBANK_O_FILES) $(SOUNDFONT_O_FILES) $(SEQUENCE_O_FILES) \
|
||||
$(BUILD_DIR)/assets/audio/sequence_font_table.o $(BUILD_DIR)/assets/audio/audiobank_padding.o
|
||||
$(call print_one_arg,Linking:,$@)
|
||||
$(call print_one_arg,Linking:,$@)
|
||||
$(V)$(LD) $(LDFLAGS) -o $@
|
||||
|
||||
$(BUILD_DIR)/linker_scripts/makerom.ld: linker_scripts/makerom.ld
|
||||
|
||||
@@ -3,14 +3,15 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "ultra64.h"
|
||||
#include "gfxprint.h"
|
||||
#include "libu64/gfxprint.h"
|
||||
#include "libu64/pad.h"
|
||||
#include "z64math.h"
|
||||
#include "color.h"
|
||||
|
||||
struct GraphicsContext;
|
||||
|
||||
typedef struct PrintUtils {
|
||||
GraphicsContext* gfxCtx;
|
||||
struct GraphicsContext* gfxCtx;
|
||||
Gfx* dl;
|
||||
Gfx* gfxRef;
|
||||
GfxPrint gfxP;
|
||||
|
||||
@@ -146,7 +146,7 @@ u8 CollisionView_Draw(void* unused) {
|
||||
|
||||
gSPDisplayList(pGfx++, sPolyGfxInit_Collision);
|
||||
gSPSetGeometryMode(pGfx++, G_CULL_BACK);
|
||||
gSPMatrix(pGfx++, &gMtxClear, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
gSPMatrix(pGfx++, &gIdentityMtx, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
|
||||
CollisionView_DrawStatic(gDebug.play, &pGfx, &dGfx, gDebug.play->colCtx.colHeader);
|
||||
Print_Screen(&gDebug.printer, 1, 1, COLOR_WHITE, "%3.2f%c", 100 - ((f32)(dGfx - pGfx) / MENU_BUFFER_SIZE) * 100,
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "z_lib.h"
|
||||
#include "z64play.h"
|
||||
#include "z64player.h"
|
||||
#include "widescreen.h"
|
||||
|
||||
#include "assets/objects/gameplay_keep/gameplay_keep.h"
|
||||
#include "assets/objects/object_ossan/object_ossan.h"
|
||||
|
||||
@@ -44,6 +44,7 @@ void ConsoleLogo_Calc(ConsoleLogoState* this) {
|
||||
this->uls = this->ult & 0x7F;
|
||||
this->ult++;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void ConsoleLogo_SetupView(ConsoleLogoState* this, f32 x, f32 y, f32 z) {
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
8012DB20 gMtxClear
|
||||
8012DB20 gIdentityMtx
|
||||
80A8E610 sShadowTex
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
-include ../print_rules.mk
|
||||
|
||||
TARGET := common-plugin.so
|
||||
SOURCES := plugin.c
|
||||
|
||||
@@ -11,9 +13,9 @@ DEP_FILES := $(TARGET:.so=.d)
|
||||
all: $(TARGET)
|
||||
|
||||
clean:
|
||||
$(RM) $(TARGET) $(DEP_FILES)
|
||||
$(V)$(RM) $(TARGET) $(DEP_FILES)
|
||||
|
||||
$(TARGET): $(SOURCES)
|
||||
$(CC) -shared $(CFLAGS) -MMD -o $@ $(SOURCES)
|
||||
$(V)$(CC) -shared $(CFLAGS) -MMD -o $@ $(SOURCES)
|
||||
|
||||
-include $(DEP_FILES)
|
||||
|
||||
Reference in New Issue
Block a user