2 CC = $(PREFIX)-gcc -mwindows -mconsole -DMINGW -DWINCOMPAT -DPITCHTIER
4 DLLTOOL = $(PREFIX)-dlltool
5 PKG_CONFIG_PATH = /opt/gtk/lib/pkgconfig
6 PRAATDIR=../sources_4606
9 SRC = main.c praat.c signals.c signals-realize.c signals-editor.c cairo.c file.c config.c frompraat.c distribution.c
10 OBJ = main.o praat.o signals.o signals-realize.o signals-editor.o cairo.o file.o config.o frompraat.o distribution.o
12 CFLAGS := -O2 -DMINGW -Wall -mms-bitfields -mno-cygwin -mwindows \
13 $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \
14 pkg-config --cflags gtk+-win32-2.0 libglade-2.0 gthread-2.0) \
15 -I$(PRAATDIR)/sys -I$(PRAATDIR)/fon -I$(PRAATDIR)/audio -I$(PRAATDIR)/dwsys -I$(PRAATDIR)/GSL -I$(PRAATDIR)/stat
17 LIBS := -Wl,--export-dynamic -Wl,--disable-auto-import \
18 $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \
19 pkg-config --libs gtk+-win32-2.0 libglade-2.0 gthread-2.0) \
20 -L$(PRAATDIR) -L. -lpraat -lzip
24 $(BIN): $(OBJ) app.exp
25 $(CC) -o $(BIN) $(OBJ) app.exp $(LIBS)
28 $(DLLTOOL) --dllname $(BIN) --def app.def --output-exp $@
31 $(DLLTOOL) --export-all --output-def $@ $(OBJ)
34 cp $(PRAATDIR)/libpraat.def .
37 $(CC) -c $(CFLAGS) -o $@ $<
40 rm -f $(BIN) $(OBJ) app.exp app.def