Buildfix for Windows

This commit is contained in:
twinaphex 2020-09-24 07:12:23 +02:00
parent bea0ff8f85
commit 83d8491888
2 changed files with 5 additions and 7 deletions

View File

@ -393,6 +393,7 @@ else ifneq (,$(findstring windows_msvc2017,$(platform)))
TARGET := $(TARGET_NAME)_libretro.dll
PSS_STYLE :=2
LDFLAGS += -DLL
WINDOWS_VERSION=1
# Windows MSVC 2010 x64
else ifeq ($(platform), windows_msvc2010_x64)
@ -632,16 +633,13 @@ else
endif
%.o: %.cpp
@$(CXX) -c $(OBJOUT)$@ $< $(CPPFLAGS) $(CXXFLAGS)
@echo "CXX $<"
$(CXX) -c $(OBJOUT)$@ $< $(CPPFLAGS) $(CXXFLAGS)
%.o: %.c
@$(CC) -c $(OBJOUT)$@ $< $(CPPFLAGS) $(CFLAGS)
@echo "CC $<"
$(CC) -c $(OBJOUT)$@ $< $(CPPFLAGS) $(CFLAGS)
clean:
@rm -f $(OBJECTS)
@echo rm -f *.o
rm -f $(OBJECTS)
rm -f $(TARGET)
install:

View File

@ -174,7 +174,7 @@ ifeq ($(HAVE_CHD), 1)
else
INCFLAGS += $(LIBCHDR_INCFLAGS)
SOURCES_C += $(LIBCHDR_SOURCES_C)
ifneq (,$(findstring windows,$(platform)))
ifeq ($(WINDOWS_VERSION), 1)
SOURCES_C += $(DEPS_DIR)/flac-1.3.2/src/libFLAC/windows_unicode_filenames.c
endif
endif