diff --git a/Makefile b/Makefile index 245e671..db8df4f 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ test-srcs := $(wildcard tests/*.cpp) emu-objs := $(addsuffix .o,$(modules)) test-objs := $(patsubst %.cpp,%.o,$(test-srcs)) -clean-objs := $(emu-objs) $(test-objs) libemu.a vgbc vgbc.test +clean-objs := $(emu-objs) $(test-objs) libemu.a vgbc vgbc.test main.o headers := $(wildcard */*.h) @@ -24,7 +24,7 @@ test: vgbc.test libemu.a: $(emu-objs) ar -rc $@ $^ -vgbc: main.c libemu.a +vgbc: main.o libemu.a g++ $(CXX_FLAGS) -o $@ $^ vgbc.test: $(test-objs) libemu.a diff --git a/main.c b/main.cpp similarity index 100% rename from main.c rename to main.cpp