mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-13 15:41:50 -05:00
54 lines
1.2 KiB
Makefile
54 lines
1.2 KiB
Makefile
|
# Makefile for Windows in JTSDK-PY environment
|
||
|
|
||
|
# Re-direct stdout and stderr: cmd.exe bash
|
||
|
# make > junk 2>&1 make &> junk
|
||
|
|
||
|
CC = gcc
|
||
|
FC = gfortran
|
||
|
|
||
|
FFLAGS = -O2 -DWIN32 -fbounds-check -fno-second-underscore -Wall \
|
||
|
-Wno-conversion -Wno-character-truncation
|
||
|
CFLAGS = -I. -DWIN32 -DWin32 -DBIGSYM -DHAVE_STRUCT_TIMESPEC
|
||
|
|
||
|
# Default rules
|
||
|
%.o: %.c
|
||
|
${CC} ${CFLAGS} -c $<
|
||
|
%.o: %.f
|
||
|
${FC} ${FFLAGS} -c $<
|
||
|
%.o: %.F
|
||
|
${FC} ${FFLAGS} -c $<
|
||
|
%.o: %.f90
|
||
|
${FC} ${FFLAGS} -c $<
|
||
|
%.o: %.F90
|
||
|
${FC} ${FFLAGS} -c $<
|
||
|
|
||
|
all: libsfrsd.a
|
||
|
|
||
|
OBJS1 = extract2.o sfrsd2.o init_rs_int.o encode_rs_int.o decode_rs_int.o
|
||
|
libsfrsd.a: $(OBJS1)
|
||
|
ar cr libsfrsd.a $(OBJS1)
|
||
|
ranlib libsfrsd.a
|
||
|
cp libsfrsd.a ..
|
||
|
|
||
|
# Build rsdtest
|
||
|
OBJS2 = rsdtest.o
|
||
|
rsdtest: $(OBJS2) ../libjt.a
|
||
|
$(FC) -o rsdtest $(OBJS2) libsfrsd.a ../libjt.a ../libpthreadGC2.a
|
||
|
|
||
|
sfrsd: sfrsd.o encode_rs_int.o decode_rs_int.o init_rs_int.o
|
||
|
gcc -g -o $@ $^
|
||
|
|
||
|
encode_rs_int.o: encode_rs.c
|
||
|
gcc -DBIGSYM=1 $(CFLAGS) -c -o $@ $^
|
||
|
|
||
|
decode_rs_int.o: decode_rs.c
|
||
|
gcc -DBIGSYM=1 $(CFLAGS) -c -o $@ $^
|
||
|
|
||
|
init_rs_int.o: init_rs.c
|
||
|
gcc -DBIGSYM=1 $(CFLAGS) -c -o $@ $^
|
||
|
|
||
|
.PHONY : clean
|
||
|
|
||
|
clean:
|
||
|
rm -rf *.o libjt.a rsdtest sfrsd
|