2 CC = $(PREFIX)-gcc -mwindows -mconsole -DMINGW -DWINCOMPAT
4 DLLTOOL = $(PREFIX)-dlltool
5 PKG_CONFIG_PATH = /opt/gtk/lib/pkgconfig
6 PRAATDIR=../sources_4517-mingw32
9 SRC = main.c praat.c signals.c cairo.c file.c
10 OBJ = main.o praat.o signals.o cairo.o file.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) \
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