File: Makefile.osx

package info (click to toggle)
audacity 2.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 129,312 kB
  • sloc: ansic: 373,350; cpp: 276,880; sh: 56,060; python: 18,922; makefile: 10,309; lisp: 8,365; xml: 1,888; perl: 1,798; java: 1,551; asm: 545; pascal: 395; sed: 58; awk: 35
file content (100 lines) | stat: -rw-r--r-- 2,323 bytes parent folder | download | duplicates (7)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# OS X Makefile for scorealign
# NOTE: This is out of date. See the score-align.vcproj -OR- Makefile.linux

# profile = -pg
profile = 

DEBUGFLAGS = 

#optimize = -g $(DEBUGFLAGS) $(profile)
optimize = -O

#PORTSMF LIBRARY PATH:
# (set this to the location of allegro.cpp, allegrosmfrd.cpp, allegrosmfwr.cpp, etc.)
# (if you do not have this directory, look for portsmf in the portmedia project
#  on sourceforge)
PORTSMF = ../portsmf

INCLUDES = -Isnd -Ifft3 -I$(PORTSMF)

#OPTIONS FOR LINUX:
c_opts = $(optimize) -DLINUX $(INCLUDES)

cc = gcc $(c_opts)
c++ = g++ $(c_opts)
cclink = gcc
c++link = g++
syslibs = -lm

scorealign_o = comp_chroma.o gen_chroma.o scorealign.o snd/audionone.o snd/sndcvt.o snd/sndheader.o snd/sndio.o snd/snd.o snd/ieeecvt.o snd/sndlinux.o snd/sndfaillinux.o fft3/FFT.o mfmidi.o $(PORTSMF)/allegro.o $(PORTSMF)/allegrosmfrd.o $(PORTSMF)/allegrosmfwr.o $(PORTSMF)/allegrord.o $(PORTSMF)/strparse.o trace.o regression.o

.SUFFIXES: .cpp .c .h .aur .o

.cpp.o:
	$(c++) -c $< -o $*.o

.c.o:
	$(cc) -c $< -o $*.o

all: scorealign

header:
	echo "**********************************************************"
	echo "**********************************************************"

clean: 
	echo "removing objects"
	find . -name "*~" | xargs rm -f
	rm -f $(scorealign_o)
	rm -f core*

cleaner: clean
	rm -f TAGS

cleanest: cleaner
	rm -f scorealign
	rm -f scorealign.ncb
	rm -f scorealign.opt
	rm -f scorealign.plg

TAGS: 
	find . \( -name "*.cpp" -o -name "*.h" \) -print | etags -

tags: TAGS

backup: cleanest
	tar cvf ../scorealign.tar .
	gzip ../scorealign.tar
	echo "please rename ../scorealign.tar.gz"


scorealign: $(scorealign_o)
	$(c++link) $(scorealign_o) -o scorealign $(syslibs)

test0:
	./scorealign /home/rbd/wdh/music/nyquist-temp.wav /home/rbd/wdh/music/chrom_nyquist-temp.wav > output.txt
	diff output.txt /home/rbd/wdh/music/output.txt | less

test:
	./scorealign /home/rbd/scorealign/data/live-beeth-s5m1-25s-mono.wav  /home/rbd/scorealign/data/midi-beeth-s5m1-25s-mono.wav > output.txt
	diff output.txt /home/rbd/wdh/music/output.txt | less

bigtest:
	./scorealign data/live-Beethoven_Symphony_No5_Mvt1.wav data/midi-Beethoven_Symphony_No5_Mvt1.wav

bigtest2: 
	./scorealign data/midi-Beethoven_Symphony_No5_Mvt1.wav data/live-Beethoven_Symphony_No5_Mvt1.wav


# DEPENDENCIES