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 \
|
||||
$(addprefix $(BUILD_DIR)/bin/,$(addsuffix _skybox.c,$(notdir $(basename $(wildcard textures/skyboxes/*.png)))))
|
||||
|
||||
ifeq ($(TARGET_WINDOWS),0)
|
||||
CXX_FILES :=
|
||||
endif
|
||||
|
||||
ifneq ($(TARGET_N64),1)
|
||||
ULTRA_C_FILES := \
|
||||
alBnkfNew.c \
|
||||
|
@ -430,10 +426,10 @@ ifneq ($(TARGET_WEB),1)
|
|||
else
|
||||
CC := emcc
|
||||
endif
|
||||
ifeq ($(TARGET_WINDOWS),1)
|
||||
LD := $(CXX)
|
||||
else
|
||||
ifeq ($(CXX_FILES),"")
|
||||
LD := $(CC)
|
||||
else
|
||||
LD := $(CXX)
|
||||
endif
|
||||
CPP := cpp -P
|
||||
OBJDUMP := objdump
|
||||
|
|
Loading…
Add table
Reference in a new issue