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!
25 lines
468 B
Makefile
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
|