Created
April 4, 2017 03:01
-
-
Save mbeltagy/654098a7183f18560622c1df4006bff3 to your computer and use it in GitHub Desktop.
For the Julia calling C minimal example
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
CC=gcc | |
CFLAGS=-c -Wall -fPIC | |
SOURCES=calc_mean.c | |
OBJECTS=$(SOURCES:.c=.o) | |
.c.o: | |
$(CC) $(CFLAGS) $< -o $@ | |
lib: $(OBJECTS) | |
$(CC) -shared -fPIC -o libmean.so $(OBJECTS) | |
clean: | |
rm *.o *.so |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment