fox32/Makefile
2022-10-26 18:03:00 -07:00

20 lines
351 B
Makefile

SDL2_CONFIG = sdl2-config
CFLAGS = -g -Ofast -std=c99 -Wall -Wextra `$(SDL2_CONFIG) --cflags --libs`
TARGET=fox32
CFILES = src/main.c \
src/bus.c \
src/cpu.c \
src/disk.c \
src/framebuffer.c \
src/keyboard.c \
src/mmu.c \
src/mouse.c \
src/screen.c
$(TARGET): $(CFILES)
$(CC) -o $@ $(filter %.c, $^) $(CFLAGS)
clean:
rm -rf fox32