#-----------------------------------------------------------------------------
# Makefile for scintillation
# Tabs must be used to separate fields
# Don't let command line get too long, or it will mysteriously fail to link
#   with gcc.
#-----------------------------------------------------------------------------

RM = rm -f

# Add    -static    to end of the CFLAGS line to get a statically-linked version.
# Remove -Wall      if your compiler complains about complex.h (This occurs with
#                   some older versions of gcc).

LDFLAGS=-s 

# Linux - to make static version, '-static' must be first item in CFLAGS
CC=g++
INCLUDES = -I. -I/usr/include -I/usr/include/ncurses
CFLAGS= -O3 -Wall
LIBS= -lm -lncurses
  
#-----------------------------------------------------------------------------
# Nothing to change beyond this point
#-----------------------------------------------------------------------------

all:: scintillation
# Each line here after the .o's must start with a tab.
scintillation: scintillation.o
	$(RM) $@ 
	$(CC) -o $@ $(CFLAGS) scintillation.o $(LIBS) $(LDFLAGS)
scintillation.o:  scintillation.cc
	$(CC) -c $(CFLAGS) $(INCLUDES) scintillation.cc


