[092325]: examples / Makefile Maximize Restore History

Download this file

Makefile    65 lines (45 with data), 1.6 kB

 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
PREFIX ?= /usr/local
LIBLO_CFLAGS ?= $(shell pkg-config liblo --cflags)
LIBLO_LIBS ?= $(shell pkg-config liblo --libs || echo -llo -lpthread)
QTDIR ?= /usr/lib/qt3
QTINCDIR ?= $(QTDIR)/include
QTLIBDIR ?= $(QTDIR)/lib
MOC ?= $(QTDIR)/bin/moc
TARGETS = \
trivial_synth.so \
less_trivial_synth.so \
dssi_osc_send \
dssi_osc_update \
less_trivial_synth_qt_gui \
less_trivial_synth/LTS_qt
all: $(TARGETS)
install: all
mkdir -p $(PREFIX)/bin
cp dssi_osc_update dssi_osc_send $(PREFIX)/bin/
mkdir -p $(PREFIX)/lib/dssi
cp trivial_synth.so $(PREFIX)/lib/dssi/
mkdir -p $(PREFIX)/lib/dssi/less_trivial_synth
cp less_trivial_synth.so $(PREFIX)/lib/dssi/
cp less_trivial_synth_qt_gui $(PREFIX)/lib/dssi/less_trivial_synth/LTS_qt
CFLAGS = -Wall -g3 -I../dssi $(LIBLO_CFLAGS)
CXXFLAGS = $(CFLAGS) -I$(QTINCDIR)
LDLIBS = $(LIBLO_LIBS)
QTGUI_LDLIBS = -L$(QTDIR)/lib -lqt-mt $(LIBLO_LIBS)
MB_O = ../message_buffer/message_buffer.o
dssi_osc_send: dssi_osc_send.o
dssi_osc_update: dssi_osc_update.o
less_trivial_synth_qt_gui.o: less_trivial_synth_qt_gui.h
less_trivial_synth_qt_gui.moc.cpp: less_trivial_synth_qt_gui.h
$(MOC) $< > $@
less_trivial_synth_qt_gui: less_trivial_synth_qt_gui.o less_trivial_synth_qt_gui.moc.o
$(CXX) -o $@ $^ $(QTGUI_LDLIBS)
less_trivial_synth/LTS_qt: less_trivial_synth_qt_gui
mkdir -p less_trivial_synth
cp less_trivial_synth_qt_gui less_trivial_synth/LTS_qt
%.so: %.o ../dssi/dssi.h $(MB_O)
gcc -nostartfiles -shared -lc -lm -o $*.so $*.o $(MB_O)
clean:
rm -f *.o *.moc.*
distclean: clean
rm -f *~ $(TARGETS)
rm -rf less_trivial_synth