summaryrefslogtreecommitdiff
path: root/lib/qra/q65/Makefile.Win
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2021-02-03 22:54:50 +0100
committerChristoph Berg <myon@debian.org>2021-02-03 22:54:50 +0100
commit1c4a8c9374cacfc002e47c8e3bb824e82aa8441c (patch)
tree13b31e80d276b67cca79f8077efbba2ad3863f34 /lib/qra/q65/Makefile.Win
parent3209ca0e2d4243c861c3d1d6022ba1da4f9f2fc8 (diff)
New upstream version 2.4.0~rc1+repackupstream/2.4.0_rc1+repack
Diffstat (limited to 'lib/qra/q65/Makefile.Win')
-rw-r--r--lib/qra/q65/Makefile.Win40
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/qra/q65/Makefile.Win b/lib/qra/q65/Makefile.Win
new file mode 100644
index 00000000..8f2214d9
--- /dev/null
+++ b/lib/qra/q65/Makefile.Win
@@ -0,0 +1,40 @@
+CC = gcc
+CFLAGS = -O2 -Wall -I. -D_WIN32
+FC = gfortran
+FFLAGS = -Wall -fbounds-check
+
+# 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: libq65.a q65.exe q65_ftn_test.exe
+
+OBJS1 = normrnd.o npfwht.o pdmath.o qra15_65_64_irr_e23.o \
+ q65.o qracodes.o
+
+libq65.a: $(OBJS1)
+ ar cr libq65.a $(OBJS1)
+ ranlib libq65.a
+
+OBJS2 = q65test.o
+
+q65.exe: $(OBJS2)
+ ${CC} -o q65.exe $(OBJS2) libq65.a -lm
+
+OBJS3 = q65_ftn_test.o q65_subs.o
+
+q65_ftn_test.exe: $(OBJS3)
+ ${FC} -o q65_ftn_test.exe $(OBJS3) libq65.a -lm
+
+.PHONY : clean
+
+clean:
+ $(RM) *.o libq65.a q65.exe