musique/scripts/release.mk

16 lines
475 B
Makefile
Raw Normal View History

2022-10-08 20:32:41 +02:00
ifneq ($(os),windows)
Release_Obj=$(addprefix bin/,$(Obj))
2022-10-08 20:32:41 +02:00
bin/bestline.o: lib/bestline/bestline.c lib/bestline/bestline.h
@echo "CC $@"
@$(CC) $< -c -O3 -o $@
bin/%.o: musique/%.cc
@echo "CXX $@"
@$(CXX) $(CXXFLAGS) $(RELEASE_FLAGS) $(CPPFLAGS) -o $@ $< -c
2022-10-08 20:32:41 +02:00
bin/musique: $(Release_Obj) bin/main.o bin/rtmidi.o bin/bestline.o
@echo "CXX $@"
2022-10-08 20:32:41 +02:00
@$(CXX) $(CXXFLAGS) $(RELEASE_FLAGS) $(CPPFLAGS) -o $@ $(Release_Obj) bin/rtmidi.o bin/bestline.o $(LDFLAGS) $(LDLIBS)
endif