Prefix library names with lib.

This commit is contained in:
Steven Smith 2016-05-04 16:09:15 -07:00
parent 44c887619d
commit 7fcef7b322

View file

@ -67,6 +67,7 @@ endif
# COMMON LIBRARY SETUP # # COMMON LIBRARY SETUP #
ifeq ($(LIBRARY),1) ifeq ($(LIBRARY),1)
STRIPPED_NAME := lib$(STRIPPED_NAME)
EXTRA_OUTPUT_FILES += $(INCLUDE_DIRS) EXTRA_OUTPUT_FILES += $(INCLUDE_DIRS)
endif endif
@ -118,7 +119,7 @@ ifeq ($(TARGET),3DS)
endif endif
ifeq ($(LIBRARY),1) ifeq ($(LIBRARY),1)
OUTPUT_FILES := $(OUTPUT_DIR)/lib/lib$(STRIPPED_NAME).a OUTPUT_FILES := $(OUTPUT_DIR)/lib/$(STRIPPED_NAME).a
else else
OUTPUT_FILES := $(OUTPUT_DIR)/$(STRIPPED_NAME).elf $(OUTPUT_DIR)/3ds/$(STRIPPED_NAME)/$(STRIPPED_NAME).smdh $(OUTPUT_DIR)/3ds/$(STRIPPED_NAME)/$(STRIPPED_NAME).3dsx $(OUTPUT_DIR)/$(STRIPPED_NAME).3ds $(OUTPUT_DIR)/$(STRIPPED_NAME).cia OUTPUT_FILES := $(OUTPUT_DIR)/$(STRIPPED_NAME).elf $(OUTPUT_DIR)/3ds/$(STRIPPED_NAME)/$(STRIPPED_NAME).smdh $(OUTPUT_DIR)/3ds/$(STRIPPED_NAME)/$(STRIPPED_NAME).3dsx $(OUTPUT_DIR)/$(STRIPPED_NAME).3ds $(OUTPUT_DIR)/$(STRIPPED_NAME).cia
endif endif
@ -152,7 +153,7 @@ else ifeq ($(TARGET),WIIU)
CXX := $(DEVKITPPC)/bin/powerpc-eabi-g++ CXX := $(DEVKITPPC)/bin/powerpc-eabi-g++
ifeq ($(LIBRARY),1) ifeq ($(LIBRARY),1)
OUTPUT_FILES := $(OUTPUT_DIR)/lib/lib$(STRIPPED_NAME).a OUTPUT_FILES := $(OUTPUT_DIR)/lib/$(STRIPPED_NAME).a
else else
OUTPUT_FILES := $(OUTPUT_DIR)/wiiu/apps/$(STRIPPED_NAME)/$(STRIPPED_NAME).elf $(OUTPUT_DIR)/wiiu/apps/$(STRIPPED_NAME)/meta.xml $(OUTPUT_DIR)/wiiu/apps/$(STRIPPED_NAME)/icon.png OUTPUT_FILES := $(OUTPUT_DIR)/wiiu/apps/$(STRIPPED_NAME)/$(STRIPPED_NAME).elf $(OUTPUT_DIR)/wiiu/apps/$(STRIPPED_NAME)/meta.xml $(OUTPUT_DIR)/wiiu/apps/$(STRIPPED_NAME)/icon.png
endif endif
@ -166,7 +167,7 @@ else
CXX := g++ CXX := g++
ifeq ($(LIBRARY),1) ifeq ($(LIBRARY),1)
OUTPUT_FILES := $(OUTPUT_DIR)/lib/lib$(STRIPPED_NAME).a $(OUTPUT_DIR)/lib/lib$(STRIPPED_NAME).so OUTPUT_FILES := $(OUTPUT_DIR)/lib/$(STRIPPED_NAME).a $(OUTPUT_DIR)/lib/$(STRIPPED_NAME).so
COMMON_CC_FLAGS += -fPIC COMMON_CC_FLAGS += -fPIC
else else
OUTPUT_FILES := $(OUTPUT_DIR)/$(STRIPPED_NAME) OUTPUT_FILES := $(OUTPUT_DIR)/$(STRIPPED_NAME)