WSJT-X/Makefile.in
Diane Bruce c236b4c52c - Cleaned up further using Joe's Windows makefile as a basis
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@62 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2006-01-08 03:54:50 +00:00

94 lines
2.4 KiB
Makefile

CC ?= @CC@
FC ?= @F77@
FFLAGS = @FFLAGS@
#
# WSJT specific Fortran flags
FFLAGS += -Wall -fbounds-check
OS=@OS@
G95=@G95@
COMPILER=@G95_LIB_PATH@
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
# For Windows
#OBJS2C = init_rs.o encode_rs.o decode_rs.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
# For Windows
#SRCS2C = jtadudio.c resample.c ptt.c igray.c wrapkarn.c
# For unix
SRCS2C = jtaudio.c ptt_unix.c igray.c wrapkarn.c start_threads.c cutil.c
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${OS} \
-fno-second-underscore" $(OBJS2C) -m Audio \
--f77exec=${G95} --f90exec=${G95} -L${COMPILER} -lpthread -lg2c \
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
# cl -c 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 start_threads.c
.PHONY : clean
clean:
${RM} -f *.o *.so JT65code