diff options
| author | hibby <d@vehibberd.com> | 2018-02-16 15:17:14 +0000 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2018-02-16 15:17:14 +0000 |
| commit | 37f727ac0746fd85504aa46c1f023c09b3eff33a (patch) | |
| tree | c8a7ce04545040a8f161ba279528730bd9a3e6ab /lib/ldpc/Makefile.msk_osx | |
| parent | d63dd8d081a6fcd0715cd13f26df59fb831769d2 (diff) | |
New upstream version 1.8.0+repackupstream/1.8.0+repack
Diffstat (limited to 'lib/ldpc/Makefile.msk_osx')
| -rw-r--r-- | lib/ldpc/Makefile.msk_osx | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/ldpc/Makefile.msk_osx b/lib/ldpc/Makefile.msk_osx new file mode 100644 index 00000000..45aa36a4 --- /dev/null +++ b/lib/ldpc/Makefile.msk_osx @@ -0,0 +1,39 @@ +# 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 |
