Now generates static and dynamic executablesje
This commit is contained in:
parent
5ed694ea38
commit
719416547a
@ -1,8 +1,10 @@
|
|||||||
|
all: demo0 demo0-static
|
||||||
|
|
||||||
all: demo0
|
demo0-static: demo0.c ../../libver/ver.h ../lib/node.h ../../libver/libver.so ../lib/libnode.so Makefile
|
||||||
|
gcc -g -o demo0-static -I ../lib -ldl demo0.c ../lib/libnode.a
|
||||||
|
|
||||||
demo0: demo0.c ../../libver/ver.h ../lib/node.h ../../libver/libver.so ../lib/libnode.so Makefile
|
demo0: demo0.c ../../libver/ver.h ../lib/node.h ../../libver/libver.so ../lib/libnode.so Makefile
|
||||||
gcc -g -o demo0 -I ../../libver -I ../lib -ldl ../../libver/libver.so ../lib/libnode.so demo0.c
|
gcc -g -o demo0 -I ../lib -L ../lib -ldl -lnode demo0.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm demo0
|
rm -f demo0 demo0-static
|
||||||
|
Loading…
Reference in New Issue
Block a user