mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-21 19:48:54 -04:00
Changed WIN32 to Win32 in wrapkarn.c and igray.c.
Corresponding change in go.bat. Added Makefiile.win. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@65 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
74525df65d
commit
8550aa14be
83
Makefile.win
Normal file
83
Makefile.win
Normal file
@ -0,0 +1,83 @@
|
||||
#Makefile for Windows
|
||||
!include <dfinc.mak> #Some definitions for Compaq Visual Fortran
|
||||
gcc = cl
|
||||
FC = df
|
||||
#FFLAGS = /traceback /check:all
|
||||
FFLAGS = /traceback /fast
|
||||
|
||||
all: JT65code.exe WSJT6.EXE
|
||||
|
||||
OBJS1 = JT65code.obj nchar.obj grid2deg.obj packmsg.obj packtext.obj \
|
||||
packcall.obj packgrid.obj unpackmsg.obj unpacktext.obj \
|
||||
unpackcall.obj unpackgrid.obj deg2grid.obj packdxcc.obj \
|
||||
chkmsg.obj getpfx1.obj getpfx2.obj k2grid.obj grid2k.obj \
|
||||
interleave63.obj graycode.obj set.obj igray.obj \
|
||||
init_rs.obj encode_rs.obj decode_rs.obj \
|
||||
wrapkarn.obj
|
||||
|
||||
JT65code.exe: $(OBJS1)
|
||||
$(FC) /exe:JT65code.exe $(OBJS1)
|
||||
|
||||
|
||||
OBJS2C = init_rs.o encode_rs.o decode_rs.o jtaudio.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
|
||||
SRCS2C = resample.c ptt.c igray.c wrapkarn.c
|
||||
|
||||
WSJT6.EXE: Audio.pyd wsjt.spec
|
||||
python c:\python23\installer\Build.py wsjt.spec
|
||||
-del WSJT6.EXE
|
||||
REN wsjt.exe WSJT6.EXE
|
||||
|
||||
Audio.pyd: $(OBJS2C)
|
||||
python f2py.py -c \
|
||||
--quiet --"fcompiler=compaqv" \
|
||||
--opt="/traceback /fast /fpp /define:Win32" \
|
||||
$(OBJS2C) \
|
||||
-lwinmm -lpa -llibsamplerate \
|
||||
-m Audio \
|
||||
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 /DWin32 /Fojtaudio.o jtaudio.c
|
||||
|
||||
init_rs.obj: init_rs.c
|
||||
$(CC) /c /DBIGSYM=1 init_rs.c
|
||||
|
||||
init_rs.o: init_rs.obj
|
||||
$(CC) /c /DBIGSYM=1 /Foinit_rs.o init_rs.c
|
||||
|
||||
encode_rs.obj: encode_rs.c
|
||||
$(CC) /c /DBIGSYM=1 encode_rs.c
|
||||
|
||||
encode_rs.o: encode_rs.c
|
||||
$(CC) /c /DBIGSYM=1 /Foencode_rs.o encode_rs.c
|
||||
|
||||
decode_rs.obj: decode_rs.c
|
||||
$(CC) /c /DBIGSYM=1 decode_rs.c
|
||||
|
||||
decode_rs.o: decode_rs.c
|
||||
$(CC) /c /DBIGSYM=1 /Ox /Zd /Fodecode_rs.o decode_rs.c
|
||||
|
||||
wrapkarn.obj: wrapkarn.c
|
||||
$(CC) /c /DWin32=1 wrapkarn.c
|
||||
|
||||
igray.obj: igray.c
|
||||
$(CC) /c /DWin32=1 igray.c
|
||||
|
||||
.PHONY : clean
|
||||
|
||||
clean:
|
||||
-del *.o *.obj JT65code.exe Audio.pyd
|
||||
|
||||
|
4
go.bat
4
go.bat
@ -1,6 +1,6 @@
|
||||
cl /c /DBIGSYM=1 /Foinit_rs.obj init_rs.c
|
||||
cl /c /DBIGSYM=1 /Foencode_rs.obj encode_rs.c
|
||||
cl /c /DBIGSYM=1 /Ox /Zd /Fodecode_rs.obj decode_rs.c
|
||||
cl /c /DWIN32=1 wrapkarn.c
|
||||
cl /c /DWIN32=1 igray.c
|
||||
cl /c /DWin32=1 wrapkarn.c
|
||||
cl /c /DWin32=1 igray.c
|
||||
df /exe:JT65code.exe JT65code_all.f /link wrapkarn.obj init_rs.obj encode_rs.obj decode_rs.obj igray.obj
|
||||
|
2
igray.c
2
igray.c
@ -1,4 +1,4 @@
|
||||
#ifdef WIN32
|
||||
#ifdef Win32
|
||||
extern int __stdcall IGRAY(int *n0, int *idir)
|
||||
#else
|
||||
int igray_(int *n0, int *idir)
|
||||
|
@ -8,7 +8,7 @@
|
||||
void *rs;
|
||||
static int first=1;
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef Win32
|
||||
void __stdcall RS_ENCODE(int *dgen, int *sent)
|
||||
#else
|
||||
void rs_encode_(int *dgen, int *sent)
|
||||
@ -38,7 +38,7 @@ void rs_encode_(int *dgen, int *sent)
|
||||
for (i = 0; i < 12; i++) sent[i+51] = dat1[11-i];
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef Win32
|
||||
void __stdcall RS_DECODE(int *recd0, int *era0, int *numera0, int *decoded, int *nerr)
|
||||
#else
|
||||
void rs_decode_(int *recd0, int *era0, int *numera0, int *decoded, int *nerr)
|
||||
@ -69,7 +69,7 @@ void rs_decode_(int *recd0, int *era0, int *numera0, int *decoded, int *nerr)
|
||||
}
|
||||
|
||||
|
||||
#ifndef WIN32
|
||||
#ifndef Win32
|
||||
void rs_encode__(int *dgen, int *sent)
|
||||
{
|
||||
rs_encode_(dgen, sent);
|
||||
|
Loading…
Reference in New Issue
Block a user