Skip to content

Instantly share code, notes, and snippets.

@tpeng
Created February 15, 2014 15:18
Show Gist options
  • Save tpeng/9020592 to your computer and use it in GitHub Desktop.
Save tpeng/9020592 to your computer and use it in GitHub Desktop.
patch to allow rnnlm build on macos
#CC = x86_64-linux-g++-4.6
CC = llvm-gcc
WEIGHTTYPE = float
CFLAGS = -D WEIGHTTYPE=$(WEIGHTTYPE) -lm -O2 -Wall -funroll-loops -ffast-math -lstdc++
#CFLAGS = -D WEIGHTTYPE=$(WEIGHTTYPE) -lm -O2 -Wall -funroll-loops -ffast-math
#CFLAGS = -lm -O2 -Wall
all: rnnlmlib.o rnnlm
rnnlmlib.o : rnnlmlib.cpp
$(CC) $(CFLAGS) $(OPT_DEF) -c rnnlmlib.cpp
rnnlm : rnnlm.cpp
$(CC) $(CFLAGS) $(OPT_DEF) rnnlm.cpp rnnlmlib.o -o rnnlm
clean:
rm -rf *.o rnnlm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment