#! /bin/csh -f
#
# Note: cannot use (and this is also a serious problem in C++)
#  -Wstrict-prototypes          using proc, iproc, rproc etc.

if ($NEMOHOST == linux-a.out) then
	# A.OUT options:
	set opts="-ansi -fwritable-strings -Wconversion -Wnested-externs"
	exec gcc -Dlinux -I$NEMOINC -L$NEMOLIB  $opts $*
	exit 0
endif

set link="$NEMOLIB/gnumalloc.so /lib/libdl.so.1"
#set link="-ldl"

foreach a ($*)
  if ("$a" == "-c") then
    set link=""
    break
  endif
end

set opts="-rdynamic -ansi -fwritable-strings -Wconversion -Wnested-externs"

# echo gcc -Dlinux -DSYSV -I$NEMOINC -L$NEMOLIB $opts $* $link
exec gcc -Dlinux -DSYSV -I$NEMOINC -L$NEMOLIB $opts $* $link



