Skip to content

Commit

Permalink
Makefile fixes for mac (#33)
Browse files Browse the repository at this point in the history
* Makefile fixes for mac

* Copy pasting is hard :(
  • Loading branch information
hensldm authored Nov 6, 2023
1 parent 7455914 commit 7b89f51
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

MAKEFLAGS += --no-builtin-rules

SHELL = /bin/bash
.SHELLFLAGS = -o pipefail -c

#### Defaults ####

# If COMPARE is 1, check the output md5sum after building
Expand Down Expand Up @@ -69,7 +72,7 @@ $(error Native Windows is currently unsupported for building this repository, us
else ifeq ($(UNAME_S),Linux)
DETECTED_OS := linux
else ifeq ($(UNAME_S),Darwin)
DETECTED_OS := mac
DETECTED_OS := macos
MAKE := gmake
CPPFLAGS += -xc++
endif
Expand Down Expand Up @@ -254,7 +257,7 @@ $(BUILD_DIR)/%.o: %.bin
$(OBJCOPY) -I binary -O elf32-big $< $@

$(BUILD_DIR)/%.o: %.s
$(CPP) $(CPPFLAGS) $(BUILD_DEFINES) $(IINC) -I $(dir $*) $(COMMON_DEFINES) $(RELEASE_DEFINES) $(GBI_DEFINES) $(AS_DEFINES) $< | $(ICONV) $(ICONV_FLAGS) | $(AS) $(ASFLAGS) $(ENDIAN) $(IINC) -I $(dir $*) -o $@
$(ICONV) $(ICONV_FLAGS) $< | $(AS) $(ASFLAGS) $(ENDIAN) $(IINC) -I $(dir $*) -o $@
$(OBJDUMP_CMD)

$(BUILD_DIR)/%.o: %.c
Expand Down

0 comments on commit 7b89f51

Please sign in to comment.