[249392]: Makefile  Maximize  Restore  History

Download this file

61 lines (40 with data), 2.3 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
# fluidsynth-dssi Makefile
# ========================
# Edit things above the long horizontal line, as appropriate for
# your system, then do 'make' and 'make install'.
# 1. Define the following to point to the unpacked fluidsynth source:
FLUID ?= ../../fluidsynth-1.0.3
FLUID_SRC = $(FLUID)/src
FLUID_INCLUDE = $(FLUID)/include
# 2. Set this to where you want fluidsynth-dssi installed:
PREFIX ?= /usr/local
# 3. Adjust anything here as needed:
OPTIMIZATION_CFLAGS = -O2 -s -fomit-frame-pointer -funroll-loops -ffast-math -finline-functions -Winline
PLUGIN_CFLAGS = -Wall -I. -I../dssi -I$(FLUID_INCLUDE) -I$(FLUID_SRC) $(OPTIMIZATION_CFLAGS)
PLUGIN_LDFLAGS = -nostartfiles -shared
PLUGIN_LDLIBS = -lfluidsynth
#GUI_CFLAGS = -Wall -O2 -I../dssi $(shell gtk-config --cflags) $(shell pkg-config liblo --cflags) -I$(FLUID_INCLUDE) -I$(FLUID_SRC)
#GUI_LDFLAGS = $(shell gtk-config --libs) $(shell pkg-config liblo --libs) -lfluidsynth
# To use GTK+ 2.x:
GUI_CFLAGS = -Wall -O2 -I../dssi $(shell pkg-config gtk+-2.0 --cflags) $(shell pkg-config liblo --cflags) -I$(FLUID_INCLUDE) -I$(FLUID_SRC)
GUI_LDFLAGS = $(shell pkg-config gtk+-2.0 --libs) $(shell pkg-config liblo --libs) -lfluidsynth
TARGETS = fluidsynth-dssi.so FluidSynth-DSSI_gtk
# ----------------------------------------------------------------------------
all: $(TARGETS)
install: all
mkdir -p $(PREFIX)/lib/dssi/fluidsynth-dssi
cp fluidsynth-dssi.so $(PREFIX)/lib/dssi/
cp FluidSynth-DSSI_gtk $(PREFIX)/lib/dssi/fluidsynth-dssi/
test -x $(PREFIX)/bin/jack-dssi-host && ln -sf jack-dssi-host $(PREFIX)/bin/fluidsynth-dssi
clean:
rm -f *.o
distclean: clean
rm -f *~ $(TARGETS)
locate_soundfont.o: locate_soundfont.c
gcc $(PLUGIN_CFLAGS) -c -o locate_soundfont.o locate_soundfont.c
fluidsynth-dssi.o: fluidsynth-dssi.c fluidsynth-dssi.h ../dssi/dssi.h
gcc $(PLUGIN_CFLAGS) -c -o fluidsynth-dssi.o fluidsynth-dssi.c
fluidsynth-dssi.so: fluidsynth-dssi.o locate_soundfont.o
gcc $(PLUGIN_LDFLAGS) -o fluidsynth-dssi.so fluidsynth-dssi.o locate_soundfont.o $(PLUGIN_LDLIBS)
FluidSynth-DSSI_gtk: FluidSynth-DSSI_gtk.c FluidSynth-DSSI_gtk.h ../dssi/dssi.h locate_soundfont.o
gcc $(GUI_CFLAGS) -o FluidSynth-DSSI_gtk FluidSynth-DSSI_gtk.c locate_soundfont.o $(GUI_LDFLAGS)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks