2022-10-14 16:43:13 +02:00
|
|
|
Release_Obj=$(addprefix bin/$(os)/,$(Obj))
|
|
|
|
|
2023-03-04 16:39:16 +01:00
|
|
|
# bin/$(os)/libreplxx.a:
|
|
|
|
# @CXX=$(CXX) os=$(os) scripts/build_replxx.sh
|
2022-10-14 16:43:13 +02:00
|
|
|
|
|
|
|
bin/$(os)/%.o: musique/%.cc
|
|
|
|
@echo "CXX $@"
|
|
|
|
@$(CXX) $(CXXFLAGS) $(RELEASE_FLAGS) $(CPPFLAGS) -o $@ $< -c
|
|
|
|
|
2023-03-04 16:39:16 +01:00
|
|
|
bin/$(os)/$(Target): $(Release_Obj) bin/$(os)/main.o bin/$(os)/rtmidi.o
|
2022-10-14 16:43:13 +02:00
|
|
|
@echo "CXX $@"
|
2023-03-04 16:39:16 +01:00
|
|
|
@$(CXX) $(CXXFLAGS) $(RELEASE_FLAGS) $(CPPFLAGS) -o $@ $(shell CXX=$(CXX) os=$(os) scripts/build_replxx.sh) $(Release_Obj) bin/$(os)/rtmidi.o $(LDFLAGS) $(LDLIBS)
|
2022-10-14 16:43:13 +02:00
|
|
|
|
|
|
|
Debug_Obj=$(addprefix bin/$(os)/debug/,$(Obj))
|
|
|
|
|
|
|
|
bin/$(os)/debug/$(Target): $(Debug_Obj) bin/$(os)/debug/main.o bin/$(os)/rtmidi.o $(Bestline)
|
|
|
|
@echo "CXX $@"
|
|
|
|
@$(CXX) $(CXXFLAGS) $(DEBUG_FLAGS) $(CPPFLAGS) -o $@ $(Debug_Obj) bin/$(os)/rtmidi.o $(Bestline) $(LDFLAGS) $(LDLIBS)
|
|
|
|
|
|
|
|
bin/$(os)/debug/%.o: musique/%.cc
|
|
|
|
@echo "CXX $@"
|
|
|
|
@$(CXX) $(CXXFLAGS) $(DEBUG_FLAGS) $(CPPFLAGS) -o $@ $< -c
|
|
|
|
|
2023-02-22 02:38:46 +01:00
|
|
|
# http://www.music.mcgill.ca/~gary/rtmidi/#compiling
|
|
|
|
bin/$(os)/rtmidi.o: lib/rtmidi/RtMidi.cpp lib/rtmidi/RtMidi.h
|
|
|
|
@echo "CXX $@"
|
|
|
|
@$(CXX) $< -c -O2 -o $@ $(CPPFLAGS) -std=c++20
|