Makefile - Add pretty messages

This commit is contained in:
madmaurice 2023-08-30 10:48:05 +02:00
parent 52df4eae27
commit c4e171cb80

View file

@ -16,16 +16,21 @@ clean:
rm -rf $(clean-objs)
test: vgbc.test
@./$<
@echo " ... run test $<"; \
./$< $(if $(V),-s,)
%.o: %.cpp $(headers)
@echo " ... build $@"; \
g++ $(CXX_FLAGS) -c -o $@ $<
libemu.a: $(emu-objs)
@echo " ... pack $@"; \
ar -rc $@ $^
vgbc: main.o libemu.a
@echo " ==> link $@"; \
g++ $(CXX_FLAGS) -o $@ $^
vgbc.test: $(test-objs) libemu.a
@echo " ==> link $@"; \
g++ $(CXX_FLAGS) -o $@ $^