#
# $Id: Makefile.cygwin.include,v 1.5 2005/05/10 11:45:45 olafs Exp $
#
# How to use:
# Set up a Cygwin environment, with flex and bison
# Set up MinGW. libcdl3rts was compiled with MinGW, and it is delivered
# with the binaries, so we have to compile and link with that.
# Run make -f Makefile.cygwin from a sh
# The result will be in ./agfl-binary .

CDLDIR=/cdl3
# path to compiler as seen from Cygwin
MINGWPATH=
MINGWPATH=/cygdrive/c/MinGW/bin/

CC=$(MINGWPATH)gcc
CXX=$(MINGWPATH)g++
CDLC=$(CDLDIR)/cdlc

TOP ?= .
CFLAGS = -O2 
CFLAGS += -I$(TOP) -I$(TOP)/liblexicon/src -I$(TOP)/libabase/src -I$(CDLDIR) -I.
CFLAGS += -DSTDC_HEADERS -DWIN32 -DHAVE_GETOPT_H -DHAVE_CONFIG_H -DNT

CDLFLAGS = -L $(CDLDIR)/
# path to CDL lib as seen from MinGW
CDLLIB = -L C:/cygwin$(CDLDIR) -lcdlrts
ABASELIB = -L$(TOP)/libabase/src -labase
LEXICONLIB = -L$(TOP)/liblexicon/src -llexicon

