2022-10-08 20:32:41 +02:00
|
|
|
ifneq ($(os),windows)
|
2022-08-18 22:58:41 +02:00
|
|
|
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 $@
|
|
|
|
|
2022-09-23 16:42:33 +02:00
|
|
|
bin/%.o: musique/%.cc
|
2022-08-18 22:58:41 +02:00
|
|
|
@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
|
2022-08-18 22:58:41 +02:00
|
|
|
@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
|