Skip to content

Commit

Permalink
[SGE] [Disasm] Added PLATFORM detect for FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi688 committed Nov 23, 2024
1 parent 1d21023 commit aa37f69
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions toolchain/disassembler/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ ifneq (,$(findstring Linux,$(PLATFORM_DETECT)))
PLATFORM := Linux
endif

# FreeBSD
ifneq (,$(findstring FreeBSD,$(PLATFORM_DETECT)))
PLATFORM := FreeBSD
endif

#-------------------------------------------
# Project Configuration
#-------------------------------------------
Expand Down Expand Up @@ -318,7 +323,7 @@ DELETE_UPACKED_OBJECTS:
ifeq (Windows,$(PLATFORM))
$(RM) $(subst /,\ $(wildcard $(UNPACKED_OBJECTS_DIR)/*.o))
endif
ifeq (Linux,$(PLATFORM))
ifneq (,$(findstring $(PLATFORM),Linux-FreeBSD))
$(RM) $(wildcard $(UNPACKED_OBJECTS_DIR)/*.o)
endif
$(RM_DIR) $(UNPACKED_OBJECTS_DIR)
Expand Down Expand Up @@ -350,7 +355,7 @@ ifeq (Windows,$(PLATFORM))
$(RM) $(subst /,\, $(wildcard $(UNPACKED_OBJECTS_DIR)/*.o))
$(RM_DIR) $(subst /,\, $(UNPACKED_OBJECTS_DIR))
endif
ifeq (Linux,$(PLATFORM))
ifneq (,$(findstring $(PLATFORM),Linux-FreeBSD))
$(RM) $(OBJECTS)
$(RM) $(__EXECUTABLE_NAME)
$(RM) $(TARGET_STATIC_LIB)
Expand Down Expand Up @@ -397,4 +402,4 @@ build: build-debug
build-run: build
$(__EXECUTABLE_NAME)

run: build-run
run: build-run

0 comments on commit aa37f69

Please sign in to comment.