mirror of
https://github.com/lxsang/antd-wvnc-plugin.git
synced 2025-08-29 15:22:02 +02:00
mimgrating from another repo
This commit is contained in:
45
Makefile
Normal file
45
Makefile
Normal file
@@ -0,0 +1,45 @@
|
||||
include ../../var.mk
|
||||
PL_NAME=wvnc
|
||||
PLUGINS=$(PL_NAME).$(EXT)
|
||||
APP_DIR=$(BUILDIRD)/htdocs/
|
||||
|
||||
OBJS = $(PLUGINS_BASE)/plugin.o
|
||||
|
||||
PLUGINSDEP = $(OBJS) \
|
||||
wvnc.o
|
||||
|
||||
PLUGINLIBS = libantd.$(EXT) -lvncclient -lpthread -lz# -lsqlite3
|
||||
|
||||
PCFLAGS=-W -Wall -g -D DEBUG $(PPF_FLAG) -D USE_ZLIB
|
||||
|
||||
main: $(PLUGINSDEP) $(PLUGINS) #lib
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(PCFLAGS) -fPIC $(INCFLAG) -c $< -o $@
|
||||
|
||||
%.$(EXT):
|
||||
-ln -s $(PBUILDIRD)/libantd.$(EXT) .
|
||||
$(CC) $(PCFLAGS) $(PLUGINSDEP) $(PLUGINLIBS) -shared -o $(PBUILDIRD)/$(basename $@).$(EXT)
|
||||
|
||||
|
||||
clean: #libclean
|
||||
-rm -f *.o *.$(EXT) $(PBUILDIRD)/$(PLUGINS)
|
||||
-rm $(PLUGINS_BASE)/plugin.o
|
||||
|
||||
libclean:
|
||||
for file in lib/* ;do \
|
||||
if [ -d "$$file" ]; then \
|
||||
echo "Cleaning $$file" ;\
|
||||
make -C "$$file" clean; \
|
||||
fi \
|
||||
done
|
||||
|
||||
|
||||
|
||||
|
||||
.PRECIOUS: %.o
|
||||
.PHONY: lib clean
|
||||
full: clean main
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user