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