2009-05-13 09:56:15 -04:00
|
|
|
MV ?= mv
|
2006-01-07 17:40:26 -05:00
|
|
|
CC ?= @CC@
|
2009-05-13 09:56:15 -04:00
|
|
|
MKDIR ?= mkdir
|
|
|
|
INSTALL= install
|
2006-01-09 14:18:03 -05:00
|
|
|
FFLAGS = @FFLAGS@
|
|
|
|
LDFLAGS = @LDFLAGS@
|
2009-08-04 14:44:58 -04:00
|
|
|
LIBS = @LIBS@
|
2006-01-09 14:18:03 -05:00
|
|
|
CPPFLAGS = @CPPFLAGS@
|
2006-01-09 21:43:23 -05:00
|
|
|
CFLAGS = @CFLAGS@
|
2009-05-13 09:56:15 -04:00
|
|
|
PREFIX = @PREFIX@
|
2009-04-23 15:02:43 -04:00
|
|
|
# Map65 specific C flags
|
2006-04-05 16:07:32 -04:00
|
|
|
CFLAGS += -DBIGSYM=1 -fPIC
|
2006-01-15 21:07:25 -05:00
|
|
|
DEFS = @DEFS@
|
|
|
|
CFLAGS += ${DEFS}
|
2006-04-05 16:07:32 -04:00
|
|
|
CPPFLAGS += ${DEFS} -I.
|
2006-01-12 00:13:07 -05:00
|
|
|
|
2009-04-23 15:02:43 -04:00
|
|
|
# MAP65 specific Fortran flags
|
|
|
|
# gfortran has no -Wno-precission-loss
|
2009-05-13 09:56:15 -04:00
|
|
|
#FFLAGS += -Wall -fbounds-check -fno-second-underscore -fPIC#FFLAGS += -Wall -Wno-precision-loss -fbounds-check -fno-second-underscore -fPIC
|
2008-09-11 11:41:05 -04:00
|
|
|
#FFLAGS += -Wall -fbounds-check -fno-second-underscore -ffixed-line-length-none -fPIC
|
2006-04-05 16:07:32 -04:00
|
|
|
#FFLAGS += -Wall -fbounds-check -fno-second-underscore -fPIC
|
2006-01-15 21:07:25 -05:00
|
|
|
#FFLAGS += -cpp -fno-second-underscore
|
2009-04-23 15:02:43 -04:00
|
|
|
|
|
|
|
all: Audio.so plrs plrr
|
|
|
|
|
2006-01-12 20:50:01 -05:00
|
|
|
# The default rules
|
|
|
|
.c.o:
|
|
|
|
${CC} ${CPPFLAGS} ${CFLAGS} -c -o ${<:.c=.o} $<
|
|
|
|
|
|
|
|
.f.o:
|
2006-04-13 00:50:00 -04:00
|
|
|
${FC} ${CPPFLAGS} ${FFLAGS} -c -o ${<:.f=.o} $<
|
2006-01-12 20:50:01 -05:00
|
|
|
|
2006-04-05 16:07:32 -04:00
|
|
|
.F90.o:
|
2006-04-13 00:50:00 -04:00
|
|
|
${FC} ${CPPFLAGS} ${FFLAGS} -c -o ${<:.F90=.o} $<
|
2006-01-07 17:40:26 -05:00
|
|
|
|
|
|
|
OS=@OS@
|
2006-04-13 00:50:00 -04:00
|
|
|
FC=@FC@
|
|
|
|
COMPILER += @FC_LIB_PATH@
|
2006-01-07 17:40:26 -05:00
|
|
|
|
2006-01-09 14:18:03 -05:00
|
|
|
LDFLAGS += -L${COMPILER}
|
|
|
|
|
2006-01-11 15:16:13 -05:00
|
|
|
PYTHON ?= @PYTHON@
|
2006-01-12 20:50:01 -05:00
|
|
|
RM ?= @RM@
|
2006-01-07 17:40:26 -05:00
|
|
|
F2PY = @F2PY@
|
|
|
|
|
2007-06-13 13:05:57 -04:00
|
|
|
###
|
2009-04-23 15:02:43 -04:00
|
|
|
|
2007-07-02 12:03:44 -04:00
|
|
|
OBJS2C = init_rs.o encode_rs.o decode_rs.o plrr_subs.o loc.o deep65.o
|
2007-06-13 13:05:57 -04:00
|
|
|
|
2007-07-05 12:08:20 -04:00
|
|
|
F2PYONLY = ftn_init ftn_quit audio_init getfile azdist0 astro0 spec
|
2006-01-12 20:50:01 -05:00
|
|
|
|
2007-01-09 10:32:53 -05:00
|
|
|
SRCS2F90 = astro0.F90 audio_init.F90 azdist0.f90 \
|
2007-06-13 13:05:57 -04:00
|
|
|
decode1.F90 ftn_init.F90 ftn_quit.f90 wsjtgen.F90 \
|
2007-07-05 12:08:20 -04:00
|
|
|
runqqq.F90 fivehz.F90 flushqqq.F90 \
|
2008-09-09 13:29:14 -04:00
|
|
|
rfile.f90 rfile3a.F90 spec.f90 map65a.F90 display.F90 \
|
2007-06-29 19:03:16 -04:00
|
|
|
getfile.F90 getfile2.F90 recvpkt.F90 savetf2.F90 \
|
2009-08-04 14:44:58 -04:00
|
|
|
symspec.f90 sec_midn.F90 getdphi.f90 thnix.f90
|
2007-06-13 13:05:57 -04:00
|
|
|
|
|
|
|
SRCS2F77 = indexx.f gen65.f chkmsg.f \
|
|
|
|
gentone.f gencwid.f set.f db.f pctile.f sort.f ssort.f \
|
|
|
|
avemsg65.f demod64a.f encode65.f extract.f four2a.f getpfx1.f \
|
|
|
|
getpfx2.f graycode.f grid2k.f interleave63.f k2grid.f \
|
2007-07-02 12:03:44 -04:00
|
|
|
morse.f nchar.f packcall.f packgrid.f \
|
2007-06-13 13:05:57 -04:00
|
|
|
packmsg.f packtext.f setup65.f unpackcall.f unpackgrid.f \
|
|
|
|
unpackmsg.f unpacktext.f astro.f azdist.f coord.f dcoord.f \
|
|
|
|
deg2grid.f dot.f ftsky.f geocentric.f GeoDist.f grid2deg.f \
|
|
|
|
moon2.f MoonDop.f sun.f toxyz.f pfxdump.f \
|
2007-06-29 10:45:15 -04:00
|
|
|
ccf65.f trimlist.f chkhist.f decode1a.f \
|
2008-09-11 11:41:05 -04:00
|
|
|
filbig.f fil6521.f twkfreq.f decode65b.f \
|
2007-06-13 13:05:57 -04:00
|
|
|
afc65b.f fchisq.f ccf2.f rfile2.f
|
|
|
|
|
|
|
|
OBJS2F77 = ${SRCS2F77:.f=.o}
|
|
|
|
|
2009-08-04 14:44:58 -04:00
|
|
|
SRCS3C = ptt_unix.c igray.c wrapkarn.c cutil.c fthread.c
|
2007-06-13 13:05:57 -04:00
|
|
|
OBJS3C = ${SRCS3C:.c=.o}
|
2009-08-04 14:44:58 -04:00
|
|
|
|
2008-09-11 12:14:06 -04:00
|
|
|
AUDIOSRCS = a2d.f90 jtaudio.c start_portaudio.c
|
2007-06-13 13:05:57 -04:00
|
|
|
|
2006-09-09 18:05:10 -04:00
|
|
|
deep65.o: deep65.F
|
2009-08-04 14:44:58 -04:00
|
|
|
$(FC) -c -O0 -Wall -fno-second-underscore -fPIC deep65.F
|
2006-09-06 14:09:05 -04:00
|
|
|
|
2006-01-14 11:15:50 -05:00
|
|
|
Audio.so: $(OBJS2C) $(OBJS3C) $(OBJS2F77) $(SRCS2F90) $(AUDIOSRCS)
|
2006-04-05 16:07:32 -04:00
|
|
|
${F2PY} -c --quiet --opt="-O ${CFLAGS} \
|
2009-08-04 14:44:58 -04:00
|
|
|
${FFLAGS}" $(OBJS2C) $(OBJS2F77) -m Audio \
|
2006-08-10 15:36:41 -04:00
|
|
|
--f77exec=${FC} --f90exec=${FC} ${CPPFLAGS} ${LDFLAGS} ${LIBS} \
|
2006-09-23 04:25:00 -04:00
|
|
|
only: $(F2PYONLY) \
|
2006-01-07 22:54:50 -05:00
|
|
|
: $(SRCS2F90) \
|
2006-01-14 11:15:50 -05:00
|
|
|
${SRCS3C} ${AUDIOSRCS}
|
2006-01-07 17:40:26 -05:00
|
|
|
|
2006-01-07 22:54:50 -05:00
|
|
|
|
2006-09-07 14:58:49 -04:00
|
|
|
init_rs_int.o: init_rs.c
|
|
|
|
$(CC) $(CFLAGS) -c -DBIGSYM=1 -o init_rs_int.o init_rs.c
|
|
|
|
encode_rs_int.o: encode_rs.c
|
|
|
|
$(CC) $(CFLAGS) -c -DBIGSYM=1 -o encode_rs_int.o encode_rs.c
|
|
|
|
decode_rs_int.o: decode_rs.c
|
|
|
|
$(CC) $(CFLAGS) -c -DBIGSYM=1 -o decode_rs_int.o decode_rs.c
|
|
|
|
|
2008-09-16 13:41:23 -04:00
|
|
|
plrr: plrr.F90 sec_midn.F90 plrr_subs.c cutil.c
|
|
|
|
$(CC) -c plrs_subs.c cutil.c
|
|
|
|
$(FC) -o plrr -fno-second-underscore plrr.F90 sec_midn.F90 plrr_subs.o cutil.o
|
2007-07-02 12:03:44 -04:00
|
|
|
|
2008-09-09 13:29:14 -04:00
|
|
|
plrs: plrs.F90 sec_midn.F90 plrs_subs.c cutil.c
|
|
|
|
$(CC) -c plrs_subs.c cutil.c
|
2008-09-16 13:41:23 -04:00
|
|
|
$(FC) -o plrs -fno-second-underscore plrs.F90 sec_midn.F90 plrs_subs.o cutil.o
|
2007-07-02 12:03:44 -04:00
|
|
|
|
2006-01-07 17:40:26 -05:00
|
|
|
.PHONY : clean
|
|
|
|
clean:
|
2008-09-18 12:26:01 -04:00
|
|
|
${RM} -f *.o *.pyc *.so *~ map65 map65.spec
|
2009-04-23 11:33:19 -04:00
|
|
|
|
2006-09-07 12:12:46 -04:00
|
|
|
distclean: clean
|
|
|
|
${RM} -f config.log config.status Makefile
|