-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
33 additions
and
45 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.idea/* | ||
cmake-build-debug/* | ||
docs/* | ||
|
||
containers.a | ||
containers.so |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.DEFAULT_GOAL := unspecified | ||
|
||
unspecified: | ||
@echo "Error: use 'make static_clang' or 'make dynamic_clang' or 'make static_gcc' or 'make dynamic_gcc'" | ||
|
||
static_clang: | ||
clang src/*.c -c -O3 -fpic | ||
ar rcs containers.a *.o | ||
rm *.o | ||
|
||
dynamic_clang: | ||
clang -shared -o containers.so -O3 -fPIC src/*.c | ||
|
||
static_gcc: | ||
gcc src/*.c -c -O3 -fpic | ||
ar rcs containers.a *.o | ||
rm *.o | ||
|
||
dynamic_gcc: | ||
gcc -shared -o containers.so -O3 -fPIC src/*.c | ||
|
||
clean: | ||
rm -f containers.a | ||
rm -f containers.so |
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