forked from JoshData/praat-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (40 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
include ../makefile.defs
DISTFILES=README Makefile \
scripting.cpp scripting.h python.c util.c util.h \
praat-py.patch
ifeq ($(EXE), praat.exe)
CC += -I winbuild/Python-2.6.2/Include -I winbuild/Python-2.6.2 -DMS_WIN32
endif
all: scripting.o python.o util.o
clean:
rm *.o
scripting.o: scripting.cpp scripting.h
$(CXX) -c scripting.cpp -o scripting.o -I../num -I../sys $(CXXFLAGS)
python.o: python.c
$(CC) -c python.c -o python.o `python-config --cflags`
util.o: util.c util.h
$(CC) -c util.c -o util.o
sendpraat: ../sys/sendpraat.c sendpraat_main.c
$(CC) -o sendpraat ../sys/sendpraat.c sendpraat_main.c -lXm
praat-py.patch:
cd ../..; diff -ur -x "*.[oa]" sources_5308/ sources_current/ | grep -v "Only in" > sources_current/scripting/praat-py.patch;
dist/praat-py.zip: $(DISTFILES)
sed -i s/_snwprintf/swprintf/g *.cpp
rm -f dist/praat-py.zip
zip dist/praat-py.zip $(DISTFILES)
dist/ChangeLog.txt: ChangeLog
cp ChangeLog dist/ChangeLog.txt
dist/ubuntu_jaunty/praat-py: dist/praat-py.zip
mkdir -p dist/ubuntu_jaunty
cd ..; bash build_linux.sh
cp ../praat dist/ubuntu_jaunty/praat-py
dist/win32/praat-py.exe: dist/praat-py.zip
mkdir -p dist/win32
cd ..; bash build_win32.sh
cp ../praat.exe dist/win32/praat-py.exe
praat: all
cd ..; make
run-praat: all
cd ..; make; ./praat
deploy: dist/ChangeLog.txt dist/praat-py.zip dist/ubuntu_jaunty/praat-py dist/win32/praat-py.exe
scp -r dist occams.info:www/code/praat-py