mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-01 08:07:10 -04:00
087dff2f88
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6570 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
40 lines
661 B
Makefile
40 lines
661 B
Makefile
# Compilers
|
|
CC = gcc
|
|
CXX = g++
|
|
FC = gfortran
|
|
AR = ar cr
|
|
RANLIB = ranlib
|
|
MKDIR = mkdir -p
|
|
CP = cp
|
|
RM = rm -f
|
|
|
|
FFLAGS = -O2 -fbounds-check -Wall -Wno-conversion
|
|
CFLAGS = -O2 -I.
|
|
|
|
# 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: ldpcsim
|
|
|
|
OBJS = ldpcsim.o alloc.o rcode.o dec.o enc.o \
|
|
intio.o blockio.o check.o open.o mod2dense.o \
|
|
mod2sparse.o mod2convert.o distrib.o rand.o gran.o
|
|
|
|
ldpcsim:$(OBJS)
|
|
$(FC) -o ldpcsim $(OBJS)
|
|
|
|
rand.o:
|
|
$(CC) $(CFLAGS) -DRAND_FILE=\"./randfile\" -c rand.c
|
|
|
|
clean:
|
|
$(RM) *.o msksim
|