Revision e1467a79dc6580ae009d827b5e6f274faff3b339 authored by liqunfu on 27 March 2020, 21:42:04 UTC, committed by GitHub on 27 March 2020, 21:42:04 UTC
2 parent s c7bc93f + a2055f6
Raw File
Makefile
CPP = g++
CFLAGS := -Wall -O3 -std=c++11

OBJS = pyreallocate.o
LIB = LightRNN/libpyreallocate.so
DIR_SRC = DLL/DLL/

all : $(LIB)

%.o : ${DIR_SRC}%.cpp
	$(CC) $(CFLAGS) -fpic -c $< -o $@

$(LIB) : $(OBJS)
	g++ -shared -o $@ $(OBJS)

tags:
	ctags -R *

clean:
	rm -f $(OBJS) $(LIB)
back to top