antd-wvnc-plugin/Makefile

53 lines
1.1 KiB
Makefile
Raw Normal View History

2018-09-19 15:10:48 +02:00
include ../../var.mk
PL_NAME=wvnc
PLUGINS=$(PL_NAME).$(EXT)
APP_DIR=$(BUILDIRD)/htdocs/
OBJS = $(PLUGINS_BASE)/plugin.o
PLUGINSDEP = $(OBJS) \
wvnc.o
2018-09-19 19:16:22 +02:00
DEP =
2018-09-21 20:00:55 +02:00
WEB_BUILD_PATH = /home/mrsang/myws/antd-web-apps/apps/assets/scripts
2018-09-19 19:16:22 +02:00
ifeq ($(UNAME_S),Darwin)
DEP= -I/usr/local/opt/jpeg-turbo/include -L/usr/local/opt/jpeg-turbo/lib
2018-09-22 01:18:13 +02:00
WEB_BUILD_PATH= /Users/mrsang/Documents/workspace/antd-web-apps/apps/assets/scripts
2018-09-19 19:16:22 +02:00
endif
2018-09-19 15:10:48 +02:00
2018-09-20 00:04:32 +02:00
PLUGINLIBS = libantd.$(EXT) -lvncclient -lpthread -lz -ljpeg# -lsqlite3
2018-09-19 15:10:48 +02:00
2018-09-20 20:03:05 +02:00
PCFLAGS=-W -Wall -g -D DEBUG $(PPF_FLAG) $(DEP) -D USE_JPEG -D USE_ZLIB
2018-09-19 15:10:48 +02:00
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