Fixed compilation of .cpp files on systems other than windows (#34)
* Fixed compilation of .cpp files on systems other than windows * FIxed C++ linking for platforms other than Windows * Links with C++ only if there are any C++ files
This commit is contained in:
parent
73a093348e
commit
2ed7dfe046
1 changed files with 3 additions and 7 deletions
10
Makefile
10
Makefile
|
@ -282,10 +282,6 @@ endif
|
||||||
GENERATED_C_FILES := $(BUILD_DIR)/assets/mario_anim_data.c $(BUILD_DIR)/assets/demo_data.c \
|
GENERATED_C_FILES := $(BUILD_DIR)/assets/mario_anim_data.c $(BUILD_DIR)/assets/demo_data.c \
|
||||||
$(addprefix $(BUILD_DIR)/bin/,$(addsuffix _skybox.c,$(notdir $(basename $(wildcard textures/skyboxes/*.png)))))
|
$(addprefix $(BUILD_DIR)/bin/,$(addsuffix _skybox.c,$(notdir $(basename $(wildcard textures/skyboxes/*.png)))))
|
||||||
|
|
||||||
ifeq ($(TARGET_WINDOWS),0)
|
|
||||||
CXX_FILES :=
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(TARGET_N64),1)
|
ifneq ($(TARGET_N64),1)
|
||||||
ULTRA_C_FILES := \
|
ULTRA_C_FILES := \
|
||||||
alBnkfNew.c \
|
alBnkfNew.c \
|
||||||
|
@ -430,10 +426,10 @@ ifneq ($(TARGET_WEB),1)
|
||||||
else
|
else
|
||||||
CC := emcc
|
CC := emcc
|
||||||
endif
|
endif
|
||||||
ifeq ($(TARGET_WINDOWS),1)
|
ifeq ($(CXX_FILES),"")
|
||||||
LD := $(CXX)
|
|
||||||
else
|
|
||||||
LD := $(CC)
|
LD := $(CC)
|
||||||
|
else
|
||||||
|
LD := $(CXX)
|
||||||
endif
|
endif
|
||||||
CPP := cpp -P
|
CPP := cpp -P
|
||||||
OBJDUMP := objdump
|
OBJDUMP := objdump
|
||||||
|
|
Loading…
Add table
Reference in a new issue