Rename main.c to main.cpp

This commit is contained in:
madmaurice 2023-08-30 10:36:06 +02:00
parent 7d1d20becf
commit 52df4eae27
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ test-srcs := $(wildcard tests/*.cpp)
emu-objs := $(addsuffix .o,$(modules)) emu-objs := $(addsuffix .o,$(modules))
test-objs := $(patsubst %.cpp,%.o,$(test-srcs)) 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) headers := $(wildcard */*.h)
@ -24,7 +24,7 @@ test: vgbc.test
libemu.a: $(emu-objs) libemu.a: $(emu-objs)
ar -rc $@ $^ ar -rc $@ $^
vgbc: main.c libemu.a vgbc: main.o libemu.a
g++ $(CXX_FLAGS) -o $@ $^ g++ $(CXX_FLAGS) -o $@ $^
vgbc.test: $(test-objs) libemu.a vgbc.test: $(test-objs) libemu.a

View file