Skip to content

Commit 57057a6

Browse files
committed
use Makefile for emulator
1 parent 21d8e58 commit 57057a6

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

emulator/Makefile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
SRCDIR += \
2+
./src \
3+
./src/Chipset \
4+
./src/Data \
5+
./src/Gui \
6+
./src/Gui/imgui \
7+
./src/Peripheral
8+
9+
VPATH = $(SRCDIR)
10+
11+
sources := $(sort $(shell find $(SRCDIR) -name \*.cpp))
12+
objects := $(patsubst %.cpp, obj/%.o, $(notdir $(sources)))
13+
14+
_dummy := $(shell mkdir -p obj)
15+
16+
all: $(objects)
17+
g++ -L ./lib $(objects) -static-libgcc -static-libstdc++ -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -llua53 -lreadline -lhistory -ltermcap -o casioemu.exe
18+
19+
obj/%.o: %.cpp
20+
g++ -O2 -std=c++14 -Wall -Wextra -Werror -pedantic -I ./include -c $< -o $@
21+
22+
.PHONY: clean
23+
clean:
24+
rm -f obj/*
25+
rm -f casioemu.exe

emulator/build.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)