updated makefile
This commit is contained in:
parent
c2d0c4f029
commit
60cc6b405e
12
c/Makefile
12
c/Makefile
|
@ -1,16 +1,18 @@
|
||||||
|
|
||||||
|
|
||||||
all: build lib static
|
all: build static dynamic
|
||||||
|
|
||||||
build:
|
build:
|
||||||
gcc -c cmdlineoptions.c
|
gcc -c cmdlineoptions.c
|
||||||
|
|
||||||
lib:
|
static: build
|
||||||
rm -f libcmdlineoptions.a
|
|
||||||
ar cq libcmdlineoptions.a cmdlineoptions.o
|
ar cq libcmdlineoptions.a cmdlineoptions.o
|
||||||
|
|
||||||
|
|
||||||
static:
|
dynamic:
|
||||||
rm -f cmdlineoptions-static.o libcmdlineoptions.so
|
|
||||||
gcc -c -fPIC -o cmdlineoptions-static.o cmdlineoptions.c
|
gcc -c -fPIC -o cmdlineoptions-static.o cmdlineoptions.c
|
||||||
ld -G cmdlineoptions-static.o -o libcmdlineoptions.so
|
ld -G cmdlineoptions-static.o -o libcmdlineoptions.so
|
||||||
|
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *.o *.a *.so
|
Loading…
Reference in New Issue