Commit 71dca012 authored by Alan Marchiori's avatar Alan Marchiori
Browse files

fixed makefile

parent 2b650425
CYTHON=cython
CPYFLAGS=-3 --embed
CC=gcc
# from python3-config --cflags --libs
# and modified to actually work
# linuxremote
#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=native -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
#LIBS=-L/nfs/software/anaconda-3.7/lib/python3.7/config-3.7m-x86_64-linux-gnu -L/nfs/software/anaconda-3.7/lib -lpython3.7m -lcrypt -lpthread -ldl -lutil -lrt -lm -Xlinker -export-dynamic
# amm042-wrk
CFLAGS=-fPIC -I/usr/include/python3.6m -I/usr/include/python3.6m
LDFLAGS=-L/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu -L/usr/lib -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
LIBS=-lpython3.6m -lpthread -ldl -lutil -lm
CFLAGS=`python3-config --cflags`
LDFLAGS=`python3-config --ldflags`
LIBS=
all: lt
lt.c: lt.py
cython $(CPYFLAGS) lt.py
$(CYTHON) $(CPYFLAGS) lt.py
lt: lt.c
gcc -v $(CFLAGS) $(LDFLAGS) $(LIBS) lt.c -o lt
$(CC) lt.c -o lt -fPIC $(CFLAGS) $(LDFLAGS) $(LIBS)
clean:
rm -f lt.c lt
print("hello")
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