Created
May 4, 2021 17:43
-
-
Save gandroz/4cdc84b07955c8549f9d427b45375c0e to your computer and use it in GitHub Desktop.
makefile for c library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CFLAGS = -fpic -lm -std=gnu99 -O3 -march=native -DCONJUGRAD_FLOAT=64 | |
all: levenshtein.so | |
m.PHONY : clean | |
levenshtein.so: levenshtein.o | |
gcc -shared -o $@ $^ | |
%.o: %.c | |
gcc -c -fpic $< -o $@ | |
clean: | |
rm -vf levenshtein.so *.o |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment