2006-01-07 17:40:26 -05:00
|
|
|
CC ?= @CC@
|
|
|
|
FC ?= @F77@
|
2006-01-09 14:18:03 -05:00
|
|
|
FFLAGS = @FFLAGS@
|
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
CPPFLAGS = @CPPFLAGS@
|
2006-01-09 21:43:23 -05:00
|
|
|
CFLAGS = @CFLAGS@
|
2006-01-07 17:40:26 -05:00
|
|
|
#
|
|
|
|
# WSJT specific Fortran flags
|
|
|
|
FFLAGS += -Wall -fbounds-check
|
|
|
|
|
|
|
|
OS=@OS@
|
|
|
|
G95=@G95@
|
|
|
|
COMPILER=@G95_LIB_PATH@
|
|
|
|
|
2006-01-09 14:18:03 -05:00
|
|
|
LDFLAGS += -L${COMPILER}
|
2006-01-09 21:43:23 -05:00
|
|
|
LDFLAGS += -lg2c
|
2006-01-09 14:18:03 -05:00
|
|
|
|
2006-01-07 17:40:26 -05:00
|
|
|
PYTHON ?= @PYTHON@
|
|
|
|
RM ?= @RM@
|
|
|
|
F2PY = @F2PY@
|
|
|
|
F2PY_PY = "f2py.py"
|
|
|
|
|
|
|
|
OBJS1 = JT65code.o nchar.o grid2deg.o packmsg.o packtext.o \
|
|
|
|
packcall.o packgrid.o unpackmsg.o unpacktext.o unpackcall.o \
|
|
|
|
unpackgrid.o deg2grid.o packdxcc.o chkmsg.o getpfx1.o \
|
|
|
|
getpfx2.o k2grid.o grid2k.o interleave63.o graycode.o set.o \
|
|
|
|
igray.o init_rs_int.o encode_rs_int.o decode_rs_int.o \
|
|
|
|
wrapkarn.o
|
|
|
|
|
2006-01-07 22:54:50 -05:00
|
|
|
OBJS2C = init_rs.o encode_rs.o decode_rs.o
|
|
|
|
F2PYONLY = ftn_init ftn_quit audio_init spec getfile azdist0 astro0
|
|
|
|
SRCS2F90 = a2d.f90 abc441.f90 astro0.f90 audio_init.f90 azdist0.f90 \
|
|
|
|
blanker.f90 decode1.f90 decode2.f90 decode3.f90 ftn_init.f90 \
|
|
|
|
ftn_quit.f90 get_fname.f90 getfile.f90 horizspec.f90 hscroll.f90 \
|
|
|
|
i1tor4.f90 pix2d.f90 pix2d65.f90 rfile.f90 savedata.f90 spec.f90 \
|
|
|
|
wsjtgen.f90 runqqq.f90 fivehz.f90
|
|
|
|
SRCS2F77 = wsjt1.f fsubs1.f fsubs.f astro.f astropak.f
|
2006-01-09 14:18:03 -05:00
|
|
|
#
|
2006-01-09 21:43:23 -05:00
|
|
|
# ok, so far for now
|
|
|
|
# Windows @AUDIO@ will be jtaudio.c since it uses portaudio
|
|
|
|
# for *nix @AUDIO@ will also be jtaudio.c and start_threads.c
|
|
|
|
# for portaudio
|
2006-01-09 14:18:03 -05:00
|
|
|
# for *nix @AUDIO@ will be start_threads.c for alsa
|
|
|
|
# for *nix @AUDIO@ will be ?? for oss
|
|
|
|
#
|
|
|
|
# ptt_unix.c vs. ptt.c I'll sort out later.
|
|
|
|
# ditto for cutil.c (only used on *nix)
|
|
|
|
# --db
|
2006-01-09 21:43:23 -05:00
|
|
|
# jtaudio.c/start_threads.c mess will have to be sorted out later
|
|
|
|
# to minimise #ifdef's
|
|
|
|
# --db
|
2006-01-09 14:18:03 -05:00
|
|
|
#
|
|
|
|
SRCS2C = ptt_unix.c igray.c wrapkarn.c cutil.c
|
|
|
|
SRCS2C += @AUDIO@
|
2006-01-07 22:54:50 -05:00
|
|
|
|
|
|
|
all: wsjt6
|
|
|
|
JT65code: $(OBJS1)
|
|
|
|
$(FC) -o JT65code $(OBJS1)
|
|
|
|
|
|
|
|
wsjt6: Audio.so #wsjt.spec
|
|
|
|
# ${PYTHON} c:\python23\installer\Build.py wsjt.spec
|
|
|
|
# ${RM} wsjt6
|
|
|
|
|
|
|
|
Audio.so: $(OBJS2C)
|
2006-01-09 21:43:23 -05:00
|
|
|
${PYTHON} ${F2PY_PY} -c --verbose --opt="-O -cpp -D${CFLAGS} \
|
2006-01-07 22:54:50 -05:00
|
|
|
-fno-second-underscore" $(OBJS2C) -m Audio \
|
2006-01-09 16:30:35 -05:00
|
|
|
--f77exec=${G95} --f90exec=${G95} ${CPPFLAGS} ${LDFLAGS} \
|
2006-01-07 22:54:50 -05:00
|
|
|
only: $(F2PYONLY) \
|
|
|
|
: $(SRCS2F90) \
|
|
|
|
$(SRCS2F77) \
|
|
|
|
${SRCS2C}
|
2006-01-07 17:40:26 -05:00
|
|
|
|
2006-01-07 22:54:50 -05:00
|
|
|
wsjt.spec: wsjt.py astro.py g.py options.py palettes.py smeter.py specjt.py
|
|
|
|
# ${PYTHON} c:\python23\installer\makespec.py --icon wsjt.ico \
|
|
|
|
# --tk --onefile wsjt.py
|
2006-01-07 17:40:26 -05:00
|
|
|
|
2006-01-09 14:18:03 -05:00
|
|
|
jtaudio.o: jtaudio.c
|
|
|
|
$(CC) -c $(CPPFLAGS) jtaudio.c
|
2006-01-07 17:40:26 -05:00
|
|
|
|
|
|
|
init_rs_int.o: init_rs.c
|
|
|
|
$(CC) -c -DBIGSYM=1 -o init_rs_int.o init_rs.c
|
|
|
|
|
|
|
|
encode_rs_int.o: encode_rs.c
|
|
|
|
$(CC) -c -DBIGSYM=1 -o encode_rs_int.o encode_rs.c
|
|
|
|
|
|
|
|
decode_rs_int.o: decode_rs.c
|
|
|
|
$(CC) -c -DBIGSYM=1 -o decode_rs_int.o decode_rs.c
|
|
|
|
|
2006-01-07 22:54:50 -05:00
|
|
|
init_rs.o: init_rs.c
|
|
|
|
$(CC) -c -DBIGSYM=1 init_rs.c
|
|
|
|
|
|
|
|
encode_rs.o: encode_rs.c
|
|
|
|
$(CC) -c -DBIGSYM=1 encode_rs.c
|
|
|
|
|
|
|
|
decode_rs.o: decode_rs.c
|
|
|
|
$(CC) -c -DBIGSYM=1 decode_rs.c
|
|
|
|
|
|
|
|
wrapkarn.o: wrapkarn.c
|
|
|
|
$(CC) -c wrapkarn.c
|
|
|
|
|
|
|
|
igray.o: igray.c
|
|
|
|
$(CC) -c igray.c
|
|
|
|
|
|
|
|
start_threads.o: start_threads.c
|
|
|
|
$(CC) -c start_threads.c
|
|
|
|
|
2006-01-07 17:40:26 -05:00
|
|
|
.PHONY : clean
|
|
|
|
clean:
|
2006-01-09 14:18:03 -05:00
|
|
|
${RM} -f *.o *.so JT65code wsjt6
|
2006-01-07 17:40:26 -05:00
|
|
|
|