makefile for c library

Home   »   makefile for c library

CFLAGS = -fpic -lm -std=gnu99 -O3 -march=native -DCONJUGRAD_FLOAT=64

all: levenshtein.so

m.PHONY : clean

levenshtein.so: levenshtein.o
	gcc -shared -o [email protected] $^

%.o: %.c
	gcc -c -fpic $< -o [email protected]

clean:
	rm -vf levenshtein.so *.o

Leave a Reply

Your email address will not be published. Required fields are marked *