# 
# make options for Cygwin based Linux environment on top of Windows
# K. Banse	ESO - Garching
# 
#.VERSION
# 050512	last modif
 
F77=g77
LD77_CMD=g77


C_OPT=-O
F_OPT=-O
# 
SYS=-DCygwin -DNO_TAPE_REMOTE

# in midas/version/system/ftoc the /bin/bash in cygwin has problems with 
# shell script named: ftoc_vmr because there's also a ftoc_vmr.exe
# in that directory, and in "good" windows manner the shell tries to execute
# this ftoc_vmr.exe when it sees: $ ftoc_vmr ...   yacc!!
# but we changed ftoc_vmr.exe to ftoc_vmrcf.exe in the makefile, 
# so no need anymore for the change in the next line ...

# FTOCVMR = $(MIDASHOME)/$(MIDVERS)/system/exec/ftoc-vmr


SLIB=-Wl,-rpath $(MIDASHOME)/$(MIDVERS)/lib
# SH_OPT=-fPIC
SH_CMD=$(MIDASHOME)/$(MIDVERS)/local/make_shared

# GUI_OPT=-DPATH_MAX=1024 -Ddg88
GUI_OPT=-DBSD_COMP -DUSE_SYSV_TERMIO -DCygwin

# for readline library
EDITFLAGS=-DVOID_SIGHANDLER -DHAVE_ALLOCA -DHAVE_ALLOCA_H -DUSG -DUSGr3 -DHAVE_GETPW_DECLS -DHAVE_DIRENT_H -DHAVE_STRING_H -DLinux -DHAVE_UNISTD_H -DHAVE_STDLIB_H -DHAVE_STRCASECMP

EDITLIBS=-lreadline -lncurses

# 
