-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
34 lines (25 loc) · 1.42 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Sigmatizm makefile. Requires wxWidgets.
# by default, wx-config from the PATH is used
WX_CONFIG := /usr/bin/wx-config
# Main executable file
PROGRAM = Sigmatizm
# Directory containing library portions of code.
INCLUDEDIR2 = /usr/local/include
# To switch to rtmidi 2.1, we need to change the error handling in wxkeyboard.cpp and also find a way to get MIDI devices
# to work, because they don't in 2.1 for some reason. Something to do with the dummy device, according to an error.
INCLUDEDIR3 = rtmidi-2.1.0
#INCLUDEDIR3 = rtmidi-1.0.11
LIBDIR = /usr/local/lib
# Object files
OBJECTS = SettingsDlg.o SynthParametersDlg.o $(INCLUDEDIR3)/RtMidi.o wxSettingsFile.o wxBitmapSlider.o wxMidiSettingsDlg.o wxVolumeMeter.o wxSwitch.o wxKeylessChoice.o wxOctaveCtrl.o wxBitmapSpinButton.o wxKeylessButton.o wxKeylessBitmapButton.o AudioUtil.o Wavetable.o wxAudioSettings.o wxMiniWavePanel.o wxHarmonicsPanel.o wxkeyboard.o wxkeyboardapp.o
#CXX = $(shell $(WX_CONFIG) --cxx -ggdb)
CXX = $(shell $(WX_CONFIG) --cxx -O3)
.SUFFIXES: .o .cpp
.cpp.o :
# $(CXX) -c -O3 -D__LINUX_ALSASEQ__ -I$(INCLUDEDIR2) -I$(INCLUDEDIR3) `$(WX_CONFIG) --cxxflags` -o $@ $<
$(CXX) -c -g -ggdb -D__LINUX_ALSASEQ__ -I$(INCLUDEDIR2) -I$(INCLUDEDIR3) `$(WX_CONFIG) --cxxflags` -o $@ $<
all: $(PROGRAM)
$(PROGRAM): $(OBJECTS)
$(CXX) -o $(PROGRAM) $(OBJECTS) -L$(LIBDIR) `$(WX_CONFIG) --libs` -lportaudio -lasound -lpthread
clean:
rm -f *.o $(PROGRAM) $(INCLUDEDIR3)/*.o