summaryrefslogtreecommitdiff
path: root/lib/ftrsd/Makefile.sfrsd3
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2018-02-16 15:17:14 +0000
committerhibby <d@vehibberd.com>2018-02-16 15:17:14 +0000
commit37f727ac0746fd85504aa46c1f023c09b3eff33a (patch)
treec8a7ce04545040a8f161ba279528730bd9a3e6ab /lib/ftrsd/Makefile.sfrsd3
parentd63dd8d081a6fcd0715cd13f26df59fb831769d2 (diff)
New upstream version 1.8.0+repackupstream/1.8.0+repack
Diffstat (limited to 'lib/ftrsd/Makefile.sfrsd3')
-rw-r--r--lib/ftrsd/Makefile.sfrsd338
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/ftrsd/Makefile.sfrsd3 b/lib/ftrsd/Makefile.sfrsd3
new file mode 100644
index 00000000..93023f31
--- /dev/null
+++ b/lib/ftrsd/Makefile.sfrsd3
@@ -0,0 +1,38 @@
+# 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: rsdtest
+
+# Build rsdtest
+OBJS2 = rsdtest.o extract2.o demod64b.o sfrsd3.o
+rsdtest: $(OBJS2) ../libjt.a
+ $(FC) -o rsdtest $(OBJS2) ../libjt.a ../libpthreadGC2.a
+
+sfrsd: sfrsd.o encode_rs_int.o decode_rs_int.o init_rs_int.o
+ gcc -g -o $@ $^
+
+.PHONY : clean
+
+clean:
+ rm -rf *.o libjt.a rsdtest sfrsd