X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fvalerie%2FMakefile;h=d8b09fb7cfab3ffa4ba2c585b50a1c4cce9af169;hb=a8be96087b2f59f05330f2a6320baa62d31d5c03;hp=6afae18766a263acfcbc238f8bdf11571cb44a69;hpb=9390e8b584f3f717f0a326893c0e37cf187a0a51;p=melted diff --git a/src/valerie/Makefile b/src/valerie/Makefile index 6afae18..d8b09fb 100644 --- a/src/valerie/Makefile +++ b/src/valerie/Makefile @@ -1,5 +1,6 @@ +include ../../config.mak -TARGET = libvalerie.so +TARGET = libvalerie$(LIBSUF) OBJS = valerie.o \ valerie_notifier.o \ @@ -11,16 +12,25 @@ OBJS = valerie.o \ valerie_remote.o \ valerie_socket.o -SRCS := $(OBJS:.o=.c) +INCS = valerie.h \ + valerie_notifier.h \ + valerie_parser.h \ + valerie_remote.h \ + valerie_response.h \ + valerie_socket.h \ + valerie_status.h \ + valerie_tokeniser.h \ + valerie_util.h -CFLAGS=-Wall -g -D_FILE_OFFSET_BITS=64 -pthread +SRCS := $(OBJS:.o=.c) -LDFLAGS=-ldv -lpthread +CFLAGS += -I.. $(RDYNAMIC) +LDFLAGS += -L../framework -lmlt -lpthread all: $(TARGET) $(TARGET): $(OBJS) - $(CC) -shared -o $@ $(OBJS) $(LDFLAGS) + $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS) depend: $(SRCS) $(CC) -MM $(CFLAGS) $^ 1>.depend @@ -31,6 +41,11 @@ dist-clean: clean clean: rm -f $(OBJS) $(TARGET) +install: all + install -m 755 $(TARGET) $(prefix)/lib/libvalerie$(LIBSUF) + mkdir -p "$(prefix)/include/mlt/valerie" + install -m 644 $(INCS) "$(prefix)/include/mlt/valerie" + ifneq ($(wildcard .depend),) include .depend endif