# File: makefile.defs.mingw64

# System: MinGW on Windows under Cygwin
# Paul Boersma, 10 September 2015

PREFIX = x86_64-w64-mingw32-

CC = $(PREFIX)gcc -std=gnu99

CXX = $(PREFIX)g++ -std=gnu++11 -Wshadow

CFLAGS = -municode -D_FILE_OFFSET_BITS=64 -O1
# Probably implicit: -m64 -mwin32 -march=x86_64 -mtune=generic

CXXFLAGS = $(CFLAGS)

LINK = $(PREFIX)g++

EXECUTABLE = Praat.exe

LIBS = -lwinmm -lwsock32 -lcomctl32 -lole32 -lgdi32 -lgdiplus -lcomdlg32 -static-libgcc -static-libstdc++ -mwindows

AR = $(PREFIX)ar
RANLIB = $(PREFIX)ranlib
WINDRES = $(PREFIX)windres
ICON = praat_win.o
MAIN_ICON = main/praat_win.o
