X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fvalerie%2FMakefile;h=d8b09fb7cfab3ffa4ba2c585b50a1c4cce9af169;hb=7a9c62dc8db2c6581b094f48b780b5659d13f9d1;hp=7322577fb736a8f05707808c83037331b8424a80;hpb=0b288164cbeb9a3c98107d439d86844be13ba910;p=melted diff --git a/src/valerie/Makefile b/src/valerie/Makefile index 7322577..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,21 +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=-O3 -Wall -g -D_FILE_OFFSET_BITS=64 -pthread +SRCS := $(OBJS:.o=.c) -LDFLAGS=-ldv -lpthread - -ifeq ($(MLT_GPROF),true) -CFLAGS+=-p -LDFLAGS+=-p -endif +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 @@ -36,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