tp/libs/dolphin/pad/Makefile

32 lines
749 B
Makefile

#
# Generated By: dol2asm
#
LIBPAD_A_CPP_FILES := \
libs/dolphin/pad/Padclamp.cpp \
libs/dolphin/pad/Pad.cpp \
LIBPAD_A_O_FILES := \
$(BUILD_DIR)/libs/dolphin/pad/Padclamp.o \
$(BUILD_DIR)/libs/dolphin/pad/Pad.o \
LIBPAD_A_CFLAGS := \
LIBPAD_A_LDFLAGS := \
-nodefaults \
-fp hard \
-proc gekko \
-linkmode moreram \
$(BUILD_DIR)/libpad.a: $(LIBPAD_A_O_FILES)
@echo linking... $(BUILD_DIR)/libpad.a
@echo $(LIBPAD_A_O_FILES) > build/LIBPAD_A_ofiles
@$(LD) -xm l $(LIBPAD_A_LDFLAGS) -o $(BUILD_DIR)/libpad.a @build/LIBPAD_A_ofiles
$(BUILD_DIR)/libs/dolphin/pad/%.o: libs/dolphin/pad/%.cpp
@mkdir -p $(@D)
@echo building... $<
@iconv -f UTF-8 -t CP932 < $< > $@.iconv.cpp
@$(CC) $(CFLAGS) $(LIBPAD_A_CFLAGS) -c -o $@ $@.iconv.cpp