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

28 lines
496 B
Makefile

include $(DEVKITARM)/3ds_rules
# Compiler flags
CFLAGS := -g -Wall -O2 $(ARCH) -D__3DS__
# Source files
SOURCES := src/debug/debug.c src/main_menu.c src/main.c src/pukeko.c
# Object files
OFILES := $(SOURCES:.c=.o)
# Build directory
BUILD := ../../build/program
.PHONY: all clean
all: $(BUILD)/pukeko.elf
$(BUILD)/pukeko.elf: $(OFILES) $(BUILD)/libpukeko.a
$(LD) -o $@ $^ $(LDFLAGS) $(LIBS)
$(BUILD)/%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(BUILD)/*.o $(BUILD)/pukeko.elf