Initial release.
This commit is contained in:
34
lib/Makefile
34
lib/Makefile
@@ -1,19 +1,23 @@
|
||||
ifdef LIBVER_SUPPORT
|
||||
DEP += ../../libver/lib/ver.h
|
||||
LIBDIR += -I ../../libver/lib
|
||||
FLAG += -D_LIBVER_SUPPORT
|
||||
SRC := libnode.c
|
||||
TARGETS := libnode.a libnode.so
|
||||
FILE_LIB := libnode.a libnode.so
|
||||
FILE_INCLUDE := node.h
|
||||
|
||||
|
||||
|
||||
include ../Makefile.var
|
||||
include ../Makefile.rule
|
||||
|
||||
|
||||
|
||||
DEP = libnode.h ../include/node.h Makefile
|
||||
INCLUDE = -I . -I ../include
|
||||
|
||||
ifdef _LIBVER_SUPPORT
|
||||
DEP += ../../libver/ver.h
|
||||
INCLUDE += -I ../../libver/lib
|
||||
endif
|
||||
|
||||
all: libnode.a libnode.so
|
||||
|
||||
libnode.o: libnode.c node.h libnode.h $(DEP) Makefile
|
||||
gcc -c -g -o libnode.o $(FLAG) -I . $(LIBDIR) libnode.c
|
||||
|
||||
libnode.a: libnode.o
|
||||
ar -r libnode.a libnode.o
|
||||
|
||||
libnode.so: libnode.o
|
||||
ld -shared -o libnode.so libnode.o
|
||||
|
||||
clean:
|
||||
rm -f libnode.o libnode.a libnode.so
|
||||
libnode.o : libnode.c $(DEP)
|
||||
|
||||
Reference in New Issue
Block a user