From 60cc6b405ea1ecface7ab806cd3d3d3111f9a62e Mon Sep 17 00:00:00 2001 From: "Marcel M. Otte" Date: Thu, 26 Dec 2013 13:36:55 +0100 Subject: [PATCH] updated makefile --- c/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/c/Makefile b/c/Makefile index 3bc33ab..0cbf9a5 100644 --- a/c/Makefile +++ b/c/Makefile @@ -1,16 +1,18 @@ -all: build lib static +all: build static dynamic build: gcc -c cmdlineoptions.c -lib: - rm -f libcmdlineoptions.a +static: build ar cq libcmdlineoptions.a cmdlineoptions.o -static: - rm -f cmdlineoptions-static.o libcmdlineoptions.so +dynamic: gcc -c -fPIC -o cmdlineoptions-static.o cmdlineoptions.c ld -G cmdlineoptions-static.o -o libcmdlineoptions.so + + +clean: + rm -f *.o *.a *.so \ No newline at end of file