strf/makefile

66 lines
2.2 KiB
Makefile
Raw Permalink Normal View History

2014-03-22 07:59:17 -06:00
# Compiling flags
CFLAGS = -O3
# Linking flags
2023-01-20 13:10:46 -07:00
LFLAGS = -lcpgplot -lpgplot -lX11 -lpng -lm -lgsl -lgslcblas -lgiza
2014-03-22 07:59:17 -06:00
# Compiler
CC = gcc
2018-11-08 15:48:04 -07:00
# Installation
INSTALL_PROGRAM = install -m 557
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
2014-03-22 07:59:17 -06:00
all:
2019-04-30 15:02:40 -06:00
make rfedit rfplot rffft rfpng rffit rffind rfdop
2014-12-03 13:17:34 -07:00
rffit: rffit.o sgdp4.o satutl.o deep.o ferror.o dsmin.o simplex.o versafit.o rfsites.o
gfortran -o rffit rffit.o sgdp4.o satutl.o deep.o ferror.o dsmin.o simplex.o versafit.o rfsites.o $(LFLAGS)
2014-09-22 11:33:45 -06:00
rfpng: rfpng.o rftime.o rfio.o rftrace.o sgdp4.o satutl.o deep.o ferror.o rftles.o
gfortran -o rfpng rfpng.o rftime.o rfio.o rftrace.o sgdp4.o satutl.o deep.o ferror.o rftles.o $(LFLAGS)
2014-09-22 11:33:45 -06:00
rfdop: rfdop.o rftrace.o rfio.o rftime.o sgdp4.o satutl.o deep.o ferror.o rftles.o
$(CC) -o rfdop rfdop.o rftrace.o rfio.o rftime.o sgdp4.o satutl.o deep.o ferror.o rftles.o -lm
2019-04-30 15:02:40 -06:00
rfedit: rfedit.o rfio.o rftime.o
$(CC) -o rfedit rfedit.o rfio.o rftime.o -lm
2014-03-22 07:59:17 -06:00
2018-04-10 03:05:00 -06:00
rffind: rffind.o rfio.o rftime.o
$(CC) -o rffind rffind.o rfio.o rftime.o -lm
2018-04-25 10:02:37 -06:00
rftrack: rftrack.o rfio.o rftime.o rftrace.o sgdp4.o satutl.o deep.o ferror.o
$(CC) -o rftrack rftrack.o rfio.o rftime.o rftrace.o sgdp4.o satutl.o deep.o ferror.o -lm
rfplot: rfplot.o rftime.o rfio.o rftrace.o sgdp4.o satutl.o deep.o ferror.o versafit.o dsmin.o simplex.o rftles.o
gfortran -o rfplot rfplot.o rftime.o rfio.o rftrace.o sgdp4.o satutl.o deep.o ferror.o versafit.o dsmin.o simplex.o rftles.o $(LFLAGS)
2014-03-22 07:59:17 -06:00
2014-12-14 15:03:37 -07:00
rffft: rffft.o rftime.o
$(CC) -o rffft rffft.o rftime.o -lfftw3f -lm
2014-03-22 07:59:17 -06:00
2018-11-08 15:48:04 -07:00
.PHONY: clean install uninstall
2014-03-22 07:59:17 -06:00
clean:
rm -f *.o
rm -f *~
2018-11-08 15:48:04 -07:00
install:
$(INSTALL_PROGRAM) rffit $(DESTDIR)$(bindir)/rffit
$(INSTALL_PROGRAM) rfpng $(DESTDIR)$(bindir)/rfpng
$(INSTALL_PROGRAM) rfedit $(DESTDIR)$(bindir)/rfedit
$(INSTALL_PROGRAM) rffind $(DESTDIR)$(bindir)/rffind
$(INSTALL_PROGRAM) rfplot $(DESTDIR)$(bindir)/rfplot
$(INSTALL_PROGRAM) rffft $(DESTDIR)$(bindir)/rffft
2020-05-09 08:27:29 -06:00
$(INSTALL_PROGRAM) tleupdate $(DESTDIR)$(bindir)/tleupdate
2018-11-08 15:48:04 -07:00
uninstall:
$(RM) $(DESTDIR)$(bindir)/rffit
$(RM) $(DESTDIR)$(bindir)/rfpng
$(RM) $(DESTDIR)$(bindir)/rfedit
$(RM) $(DESTDIR)$(bindir)/rffind
$(RM) $(DESTDIR)$(bindir)/rfplot
$(RM) $(DESTDIR)$(bindir)/rffft
2020-05-09 08:26:28 -06:00
$(RM) $(DESTDIR)$(bindir)/tleupdate