NAME = eltpsffit
CC = gcc
FC = g77
CFLAGS = -O2 -Wall -DNO_PGPATCH
FFLAGS = -O
LIBS = -lm -lcpgplot -lpgplot -lX11 -lgsl -lgslcblas -lcfitsio -lwcs

OBJECTS = $(NAME).o airy_disk.o airy_disk_obs.o ang_img2phys.o		\
apfluxe.o apsbean.o apsbean1.o bin.o cpgdsline.o cpggets.o cpggrect.o	\
cpginput.o cpgmline.o cpgpoint.o cpgpoli.o cpgwinrename.o dist2pt.o	\
dpercentile.o ean2el.o eltpsffc.o eltpsffit1d.o eltpsffits2d.o		\
epf1daddc.o epf1ddelc.o epf1ddofit.o epf1deditc.o epf1dfs.o epf1dh2q.o	\
epf1deval.o epf1dplot.o epf1drmodel.o epf1dse.o epf1dw2hwhm.o		\
epf1dwmodel.o epf1dwindowing.o epfs2ddofit.o epfs2deval.o		\
epfs2dreval.o epfs2drmodel.o epfs2dwmodel.o errormsg.o faskropen.o	\
faskwopen.o fcmp.o fcompl.o fepfmc1d.o fepfmcs2d.o ferrormsg.o		\
fitsaskropen.o fluxcent.o get_input.o get_pgwins.o getcom.o getdkeyw.o	\
getscbc.o getselection.o grectinel_sub.o idxfitc1d.o idxival.o		\
idxval.o ijmax.o img2phys.o ipplot.o iscale.o isdir.o iwindowing.o	\
jmax.o jmin.o line2sline.o linecel.o lin_fit_s.o mvreswin.o		\
nferrormsg.o nlfit.o nlines.o percentile.o phys2img.o ptcmp.o ptinel.o	\
ptingrect.o ptonline.o range.o rasciimg.o rfitsimg.o rfitsimghdr.o	\
sidxndval.o sidxnval.o sigclip.o sinc.o sqinel_sub.o strtoup.o		\
transrot.o warnmsg.o window_with_name.o zpx2zpn.o


$(NAME): $(OBJECTS)
	$(FC) -o $(NAME) $(OBJECTS) $(LIBS)
 
depend:
	makedepend -f $(NAME).mk -Y -- $(CFLAGS) -- -s "# Dependencies" \
	$(OBJECTS:.o=.c) >& /dev/null


# Dependencies

eltpsffit.o: iact.h eltpsffit.h geom.h img.h
ang_img2phys.o: const.h geom.h img.h
apfluxe.o: const.h img.h geom.h
apsbean.o: const.h img.h geom.h
apsbean1.o: img.h geom.h
cpgdsline.o: geom.h
cpggrect.o: geom.h
cpgpoint.o: geom.h
cpgpoli.o: geom.h
dist2pt.o: geom.h
ean2el.o: geom.h
eltpsffc.o: const.h img.h geom.h iact.h
eltpsffit1d.o: const.h iact.h eltpsffit.h geom.h img.h
eltpsffits2d.o: const.h iact.h eltpsffit.h geom.h img.h
epf1daddc.o: iact.h eltpsffit.h geom.h img.h
epf1ddelc.o: iact.h eltpsffit.h geom.h img.h
epf1ddofit.o: eltpsffit.h geom.h img.h
epf1deditc.o: iact.h eltpsffit.h geom.h img.h
epf1dfs.o: eltpsffit.h geom.h img.h
epf1deval.o: const.h eltpsffit.h geom.h img.h
epf1dplot.o: eltpsffit.h geom.h img.h
epf1drmodel.o: const.h eltpsffit.h geom.h img.h
epf1dse.o: const.h iact.h eltpsffit.h geom.h img.h
epf1dw2hwhm.o: const.h eltpsffit.h geom.h img.h
epf1dwmodel.o: eltpsffit.h geom.h img.h
epf1dwindowing.o: iact.h eltpsffit.h geom.h img.h
epfs2ddofit.o: eltpsffit.h geom.h img.h
epfs2deval.o: eltpsffit.h geom.h img.h
epfs2dreval.o: const.h eltpsffit.h geom.h img.h
epfs2drmodel.o: eltpsffit.h geom.h img.h
epfs2dwmodel.o: eltpsffit.h geom.h img.h
fepfmc1d.o: const.h nlfit.h eltpsffit.h geom.h img.h
fepfmcs2d.o: const.h nlfit.h eltpsffit.h geom.h img.h
fluxcent.o: img.h geom.h
get_input.o: iact.h
getcom.o: iact.h
grectinel_sub.o: const.h geom.h
idxfitc1d.o: eltpsffit.h geom.h img.h
img2phys.o: img.h
ipplot.o: img.h
iscale.o: img.h
iwindowing.o: img.h
line2sline.o: geom.h
linecel.o: geom.h
lin_fit_s.o: geom.h
nlfit.o: nlfit.h
phys2img.o: img.h
ptcmp.o: geom.h
ptinel.o: geom.h
ptingrect.o: geom.h
ptonline.o: geom.h
rasciimg.o: img.h
rfitsimg.o: img.h
rfitsimghdr.o: img.h
sqinel_sub.o: geom.h
transrot.o: const.h geom.h
