
# "sctomat", converts analog "dump" format to matlab format
#   Copyright (C) 1994 Michael Godfrey
#   Maintainers's address: godfrey@isl.stanford.edu
#
# sctomat makefile

BINDIR=	../../bin

##
##  (1) Choosing your compiler
##  ---------------------------
##
## For Sun SPARC, HP series 300/400, Apple AU/X,  gcc is recommended, 
## preferably version 1.40 but most 2.XX and 1.XX work well.
##
## For DEC MIPS-based Ultrix, gcc 2.2.2 is recommended; hcc 2.2.3 is NOT,
##  because of a <varargs.h> bug.
##
## For HP series 700/800 (extra-cost) ANSI cc is recommended (see below for
##  options). HP's non-ANSI cc will not work, and gcc presently has some
##  problems with <varargs.h>. For version 8.05 (and earlier) of HP ANSI cc
##  you will need a patch tape from HP to fix compiler bugs; alternatively,
##  you can get around the problem by compile the file math.c 
##  with the gcc 2.XX compiler. 
##
## For IBM RS/6000, xlc is recommended (see below for options)
##
## For Linux, gcc 2.3.3 is recommended (see below for options)
##
## For AmigaOS, ADE (Amiga Development Enviroment) with gcc is recommended.
##

CHIPMUNKCC = gcc
CC = $(CHIPMUNKCC)

##
## (2) Adding appropriate flags
## -----------------------------
##
## for HP series 800 (using cc) add these flags to CFLAGS
## CFLAGS = -w -Aa -D_HPUX_SOURCE -DF_OK=0
##
## for IBM RS/6000 (using xlc) add these flags to CFLAGS
## CFLAGS =  -DBSD=0
##
## for AU/X, add this flags to CFLAGS
## CFLAGS =  -Daux
##
## for linux gcc 2.3.3 using xfree1.1 Xserver, add these flags to CFLAGS 
## 
##
## -DBSD -Dlinux -DF_OK=0 
##
## also add the flag
##
## -m486 
##
## if you are running on a 486-compatable CPU. For maximum speed, try the
## flags -fomit-frame-pointer -O6; however, the former flag will make it
## difficult for you to track down any bugs that occur while using the
## tools, and the latter will expose you to possible optimizer bugs. However,
## our alpha-testers have reported no problems using these two flags.
##
##
## for AmigaOS using gcc, add these flags to CFLAGS
##
## -ansi -DBSD -DF_OK=0
##
## to increase speed, try to add -O3 and, based on your CPU, one of these
##
##   -m68020              : for 68020
##   -m68020 -m68881      : for 68020+6888x
##   -m68030              : for 68030
##   -m68030 -m68881      : for 68030+6888x
##   -m68040              : for 68040 and 68060
##
  
CFLAGS = 

scope_to_mat:     savemat.o scope_to_mat.o
	$(CC) savemat.o scope_to_mat.o -lm -o scope_to_mat

install:  scope_to_mat  
	cp scope_to_mat $(BINDIR)  

clean:
	-rm -f *.o scope_to_mat

 




