updated makefile

This commit is contained in:
Marcel M. Otte 2013-12-26 13:36:55 +01:00
parent c2d0c4f029
commit 60cc6b405e
1 changed files with 7 additions and 5 deletions

View File

@ -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