GCC=g++
CCFLAGS=-g
LIBFLAGS=-lCCfits

all: psfdrawcube

psfdrawcube: psfdrawcube.o psfex.o
	$(GCC) $(LIBFLAGS) psfdrawcube.o psfex.o -o psfdrawcube

psfex.o: psfex.cpp psfex.h
	$(GCC) $(CCFLAGS) -c psfex.cpp

psfdrawcube.o: psfdrawcube.cpp psfex.h
	$(GCC) $(CCFLAGS) -c psfdrawcube.cpp
