Files
voidEmu/Makefile
Zoe 8a682699f6 Fix handling of several instructions
We are now handling all instructions we have implmeented, and their respective flags, correctly and we now pass test 3 and 4 from Timendus' CHIP-8 test suite!
2025-02-06 20:04:56 +00:00

25 lines
468 B
Makefile

CXX := g++
CXXFLAGS := -Wall -Wextra -std=c++23 -g -Werror -Ilibs `sdl2-config --cflags`
LDFLAGS := `sdl2-config --libs`
BIN_DIR := bin
all: voidEmu disassembler
run: all
./bin/voidEmu $(FILE)
disassembler: $(wildcard disassembler/*.cpp) | $(BIN_DIR)
$(CXX) $(CXXFLAGS) $^ -o ${BIN_DIR}/$@
voidEmu: $(wildcard src/*.cpp) | $(BIN_DIR)
$(CXX) $(CXXFLAGS) $^ -o ${BIN_DIR}/$@ $(LDFLAGS)
$(BIN_DIR):
mkdir -p $@
clean:
rm -rf $(BIN_DIR)
.PHONY: all clean run