From f672ae724f98c0758c7812ef30b0bbca2b06e497 Mon Sep 17 00:00:00 2001 From: "Marcel M. Otte" Date: Thu, 26 Dec 2013 12:42:05 +0000 Subject: [PATCH] updated makefile again... --- c/.cproject | 28 +++++++++++++++++++++++++--- c/Makefile | 6 +++--- 2 files changed, 28 insertions(+), 6 deletions(-) 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