Files
pukeko-3ds/libpukeko/Makefile
2025-05-10 13:52:29 +00:00

28 lines
430 B
Makefile

include $(DEVKITARM)/3ds_rules
# Compiler flags
CFLAGS := -g -Wall -O2 $(ARCH) -D__3DS__
# Source files
SOURCES := src/navigation/selector.c
# Object files
OFILES := $(SOURCES:.c=.o)
# Build directory
BUILD := ../../build/libpukeko
.PHONY: all clean
all: $(BUILD)/libpukeko.a
$(BUILD)/libpukeko.a: $(OFILES)
$(AR) rcs $@ $^
$(BUILD)/%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(BUILD)/*.o $(BUILD)/libpukeko.a