diff --git a/c/.cproject b/c/.cproject index 612e212..1b16604 100644 --- a/c/.cproject +++ b/c/.cproject @@ -21,10 +21,19 @@ - - + + + + + + + + + - + + + @@ -42,4 +51,17 @@ + + + + + make + + clean + true + true + true + + + diff --git a/c/Makefile b/c/Makefile index 0cbf9a5..b0e5ae5 100644 --- a/c/Makefile +++ b/c/Makefile @@ -1,15 +1,15 @@ -all: build static dynamic +all: build static-lib dynamic-lib build: gcc -c cmdlineoptions.c -static: build +static-lib: build ar cq libcmdlineoptions.a cmdlineoptions.o -dynamic: +dynamic-lib: gcc -c -fPIC -o cmdlineoptions-static.o cmdlineoptions.c ld -G cmdlineoptions-static.o -o libcmdlineoptions.so