Add makefiles for building libqra65.a and qra65sim.exe in Windows.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6790 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2016-06-21 17:26:07 +00:00
parent 7402cecd9a
commit 0bd4a2363a
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,26 @@
CC = gcc
CFLAGS = -O2 -Wall -I. -D_WIN32
# 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: qra65sim.exe
OBJS1 = main.o qra65.o
qra65sim.exe: $(OBJS1)
${CC} -o qra65sim.exe $(OBJS1) ../qracodes/libqra65.a -lm
.PHONY : clean
clean:
$(RM) *.o qra65sim.exe

View File

@ -0,0 +1,33 @@
CC = gcc
CFLAGS = -O2 -Wall -I. -D_WIN32
# 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: libqra65.a qracodes.exe
OBJS1 = normrnd.o npfwht.o pdmath.o qra12_63_64_irr_b.o \
qra13_64_64_irr_e.o qracodes.o
libqra65.a: $(OBJS1)
ar cr libqra65.a $(OBJS1)
ranlib libqra65.a
OBJS2 = main.o
qracodes.exe: $(OBJS2)
${CC} -o qracodes.exe $(OBJS2) libqra65.a -lm
.PHONY : clean
clean:
$(RM) *.o libqra65.a qracodes.exe