62 lines
1.3 KiB
Makefile
62 lines
1.3 KiB
Makefile
#
|
|
# * Fortraneries from tTh *
|
|
#
|
|
# Makefile for the general purpose modules
|
|
#
|
|
|
|
GFOPT = -Wall -Wextra -g -I.
|
|
|
|
all: chkpixels trnd
|
|
|
|
# ---------------------------------------------------------
|
|
|
|
spitpgm.o: spitpgm.f90 Makefile
|
|
gfortran $(GFOPT) -c $<
|
|
|
|
pixrgb.o: pixrgb.f90 Makefile
|
|
gfortran $(GFOPT) -c $<
|
|
|
|
centermag.o: centermag.f90 Makefile
|
|
gfortran $(GFOPT) -c $<
|
|
|
|
dummy.o: dummy.f90 Makefile
|
|
gfortran $(GFOPT) -c $<
|
|
|
|
trials.o: trials.f90 Makefile
|
|
gfortran $(GFOPT) -c $<
|
|
|
|
mathstuff2.o: mathstuff2.f90 Makefile
|
|
gfortran $(GFOPT) -c $<
|
|
|
|
noisepictures.o: noisepictures.f90 Makefile
|
|
gfortran $(GFOPT) -c $<
|
|
|
|
wavmetrics.o: wavmetrics.f90 Makefile
|
|
gfortran $(GFOPT) -c $<
|
|
|
|
#----------------------------------------------------------
|
|
# making a fluffy archive
|
|
#
|
|
OBJECTS = spitpgm.o pixrgb.o \
|
|
centermag.o dummy.o \
|
|
trials.o mathstuff2.o \
|
|
noisepictures.o wavmetrics.o
|
|
|
|
libtth90modules.a: $(OBJECTS) Makefile
|
|
$(AR) rs $@ $?
|
|
|
|
# please explain the 'ar' command line
|
|
|
|
#----------------------------------------------------------
|
|
# programmes de testouille
|
|
#
|
|
|
|
chkpixels: chkpixels.f90 Makefile libtth90modules.a
|
|
gfortran $(GFOPT) -pg $< libtth90modules.a -o $@
|
|
|
|
t_centermag: t_centermag.f90 Makefile libtth90modules.a
|
|
gfortran $(GFOPT) $< libtth90modules.a -o $@
|
|
|
|
trnd: trnd.f90 Makefile libtth90modules.a
|
|
gfortran $(GFOPT) $< libtth90modules.a -o $@
|