Commit 9ff24653 authored by Alan Marchiori's avatar Alan Marchiori
Browse files

changed to pyinstaller

parent 73fb66f5
......@@ -2,22 +2,27 @@ CYTHON=cython
CPYFLAGS=-3 --embed
CC=gcc
CFLAGS=`python3-config --cflags`
# CFLAGS=-I/nfs/software/anaconda-3.7/include/python3.7m -I/nfs/software/anaconda-3.7/include/python3.7m -Wno-unused-result -Wsign-compare -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -O3 -ffunction-sections -pipe -fdebug-prefix-map=/tmp/build/80754af9/python_1553721932202/work=/usr/local/src/conda/python-3.7.3 -fdebug-prefix-map=/nfs/software/anaconda-3.7=/usr/local/src/conda-prefix -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -flto -DNDEBUG -fwrapv -O3 -Wall
#CFLAGS=`python3-config --cflags`
CFLAGS=-I/nfs/software/anaconda-3.6/include/python3.6m -I/nfs/software/anaconda-3.6/include/python3.6m -Wno-unused-result -Wsign-compare -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-lto -fno-plt -O3 -pipe -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix -fuse-linker-plugin -DNDEBUG -fwrapv -O3 -Wall
# -ffat-lto-objects -flto-partition=none -flto
LDFLAGS=`python3-config --ldflags`
LIBS=
all: lt
lt.c: lt.py
$(CYTHON) $(CPYFLAGS) lt.py
#lt.c: lt.py
#$(CYTHON) $(CPYFLAGS) lt.py
lt: lt.c
$(CC) lt.c -o lt -fPIC $(CFLAGS) $(LDFLAGS) $(LIBS)
lt:
#$(CC) lt.c -o lt -fno-lto -fPIC $(CFLAGS) $(LDFLAGS) $(LIBS)
pyinstaller lt.py
clean:
rm -f lt.c lt
rm -f lt.c deploy lt
deploy: lt
cp lt ~cs206/bin
rm -rf ~cs206/bin/lt
cp -R dist/lt ~cs206/bin
chmod -R go+r ~cs206/bin/lt
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment