2016-06-21 13:26:07 -04:00
|
|
|
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 $<
|
|
|
|
|
2016-07-02 08:48:27 -04:00
|
|
|
all: libqra64.a qracodes.exe
|
2016-06-21 13:26:07 -04:00
|
|
|
|
|
|
|
OBJS1 = normrnd.o npfwht.o pdmath.o qra12_63_64_irr_b.o \
|
|
|
|
qra13_64_64_irr_e.o qracodes.o
|
|
|
|
|
2016-07-02 08:48:27 -04:00
|
|
|
libqra64.a: $(OBJS1)
|
|
|
|
ar cr libqra64.a $(OBJS1)
|
|
|
|
ranlib libqra64.a
|
2016-06-21 13:26:07 -04:00
|
|
|
|
|
|
|
OBJS2 = main.o
|
|
|
|
|
|
|
|
qracodes.exe: $(OBJS2)
|
2016-07-02 08:48:27 -04:00
|
|
|
${CC} -o qracodes.exe $(OBJS2) libqra64.a -lm
|
2016-06-21 13:26:07 -04:00
|
|
|
|
|
|
|
.PHONY : clean
|
|
|
|
|
|
|
|
clean:
|
2016-07-02 08:48:27 -04:00
|
|
|
$(RM) *.o libqra64.a qracodes.exe
|