# 
# K.Banse	ESO - Garching		050611
# make options for 64bit Linux on AMD/Intel 
# 
# 
# 110525	last modif
#  

CC=gcc
LDCC=gcc


F_OPT=-O -fPIC -std=legacy -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -fcommon -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -Wno-implicit -std=gnu17



SYS=-DLinuxAMD64 -DGCC -ltirpc -I/usr/include/tirpc


SLIB=-Wl,-rpath $(MIDASHOME)/$(MIDVERS)/lib -ltirpc -lnsl
SH_OPT=-fPIC
SH_CMD=$(MIDASHOME)/$(MIDVERS)/local/make_shared
GUI_OPT=-DPATH_MAX=1024 -Ddg88

# 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


# To link with static Motif libraries
# X_LIBS=-Wl,-Bstatic -lXm -lXext -lXp -Wl,-Bdynamic -lXt -lX11

# 
VARARGS=-DNOVARARGS
C_OPT=-fPIC -fcommon -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -fcommon -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -Wno-implicit -std=gnu17
K_OPT=-fPIC -fcommon -fno-strict-aliasing -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -fcommon -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -Wno-implicit -std=gnu17
INSTALL_FLAG=auto
F77=gfortran
LD77_CMD=gfortran -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
E_OPT=-Z
STRIP=echo
EDITSWITCH=-DEdit_dummy
EDITLIBS=-lreadline -lncurses
UIMX=uimxR5
