diff --git a/lib/ldpc/Makefile.msk_osx b/lib/ldpc/Makefile.msk_osx index c5a475bb7..509aed2d2 100644 --- a/lib/ldpc/Makefile.msk_osx +++ b/lib/ldpc/Makefile.msk_osx @@ -1,4 +1,5 @@ # Compilers +# $(CC) -DRAND_FILE=\"`pwd`/randfile\" rand.c CC = gcc CXX = g++ FC = gfortran @@ -25,7 +26,7 @@ CFLAGS = -O2 -I. all: msksim -OBJS = msksim.o alloc.o rcode.o channel.o dec.o enc.o \ +OBJS = msksim.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 @@ -33,7 +34,7 @@ msksim: $(OBJS) $(FC) -o msksim $(OBJS) rand.o: - $(CC) -DRAND_FILE=\"`pwd`/randfile\" rand.c + $(CC) $(CFLAGS) -DRAND_FILE=\"./randfile\" -c rand.c clean: $(RM) *.o msksim