mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-08-24 23:26:36 -04:00
if none given. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@82 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
111 lines
2.8 KiB
Makefile
111 lines
2.8 KiB
Makefile
CC ?= @CC@
|
|
FC ?= @F77@
|
|
FFLAGS = @FFLAGS@
|
|
LDFLAGS = @LDFLAGS@
|
|
CPPFLAGS = @CPPFLAGS@
|
|
CFLAGS = @CFLAGS@
|
|
#
|
|
# WSJT specific Fortran flags
|
|
FFLAGS += -Wall -fbounds-check
|
|
|
|
OS=@OS@
|
|
G95=@G95@
|
|
COMPILER=@G95_LIB_PATH@
|
|
|
|
LDFLAGS += -L${COMPILER}
|
|
LDFLAGS += -lg2c
|
|
|
|
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
|
|
|
|
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
|
|
#
|
|
# 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
|
|
# 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
|
|
# jtaudio.c/start_threads.c mess will have to be sorted out later
|
|
# to minimise #ifdef's
|
|
# --db
|
|
#
|
|
SRCS2C = ptt_unix.c igray.c wrapkarn.c cutil.c
|
|
SRCS2C += @AUDIO@
|
|
|
|
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)
|
|
${PYTHON} ${F2PY_PY} -c --verbose --opt="-O -cpp -D${CFLAGS} \
|
|
-fno-second-underscore" $(OBJS2C) -m Audio \
|
|
--f77exec=${G95} --f90exec=${G95} ${CPPFLAGS} ${LDFLAGS} \
|
|
only: $(F2PYONLY) \
|
|
: $(SRCS2F90) \
|
|
$(SRCS2F77) \
|
|
${SRCS2C}
|
|
|
|
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
|
|
|
|
jtaudio.o: jtaudio.c
|
|
$(CC) -c $(CLAGS) jtaudio.c
|
|
|
|
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
|
|
|
|
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 $(CFLAGS) start_threads.c
|
|
|
|
.PHONY : clean
|
|
clean:
|
|
${RM} -f *.o *.so JT65code wsjt6
|
|
|