# This file contains some flags that worked for various systems and compilers.
# If you find another unusual combination, please send a mail to
# <magic-hackers@csl.cornell.edu> and let us know!

# Solaris 2.7 which Sun's cc
CC = cc
CPP = /usr/ccs/lib/cpp -P
CPPFLAGS = -I. -I${MAGICDIR} -I${MAGICDIR}/readline
DFLAGS = -DSYSV -DFILE_LOCKS -DUSE_READLINE
CFLAGS = -g -fast
READLINE_DEFS =
READLINE_LIBS = -L${MAGICDIR}/readline/readline -lreadline -ltermcap
DEPEND_FLAG = -xM1
GR_CFLAGS = -DX11 -DXLIB -I/usr/openwin/include
GR_LIBS = -R/usr/openwin/lib -L/usr/openwin/lib -lX11

# Linux RedHat 2.2.5 with gcc
CC = gcc
CPP = /lib/cpp -P -traditional
CPPFLAGS = -I. -I${MAGICDIR} -I${MAGICDIR}/readline
DFLAGS = -Dlinux -DSYSV -DF_OK=0 -DW_OK=2 -D__NO_STRING_INLINES -DISC -DFILE_LOCKS -DUSE_READLINE
CFLAGS = -g -O6 -fomit-frame-pointer
READLINE_DEFS =
READLINE_LIBS = -L${MAGICDIR}/readline/readline -lreadline -ltermcap
DEPEND_FLAG = -MM
GR_CFLAGS = -DX11 -DXLIB
GR_LIBS = -lX11 -L/usr/X11R6/lib/ -lbsd

# IRIX 6.5 with SGI's cc
CC = cc
CPP = /usr/lib/cpp -P
CPPFLAGS = -I. -I${MAGICDIR} -I${MAGICDIR}/readline
DFLAGS = -DSYSV -DIRIX -D_BSD_SIGNALS -DFILE_LOCKS -DUSE_READLINE
CFLAGS = -g -cckr -n32 -woff 1174,1116,1233,1552,1009,1171,1014,1177 -mips4 -O3 -TARG:platform=ip27 -OPT:Olimit=0:roundoff=3:div_split=ON:alias=typed
READLINE_DEFS = -DNEED_EXTERN_PC
READLINE_LIBS = -L${MAGICDIR}/readline/readline -lreadline -ltermcap -lm
DEPEND_FLAG = -MM
GR_CFLAGS = -DX11 -DXLIB -I/usr/include/X11
GR_LIBS = -lX11
