X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fvalerie%2FMakefile;h=8d96f0c8299059b721f0c88c9b23cacd8d4646d2;hb=0a763f7b10f28184bba59fd8cecbc29999c131ef;hp=908c432f8f7a763afc5cc638340d3f419ca4e39b;hpb=661165812e3410fe2f6f49d7af882b36a0efcf82;p=melted diff --git a/src/valerie/Makefile b/src/valerie/Makefile index 908c432..8d96f0c 100644 --- a/src/valerie/Makefile +++ b/src/valerie/Makefile @@ -1,5 +1,6 @@ +include ../../config.mak -AR = ar +TARGET = libvalerie.so OBJS = valerie.o \ valerie_notifier.o \ @@ -11,17 +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: libvalerie.a +all: $(TARGET) -libvalerie.a: $(OBJS) - $(AR) rvu $@ $(OBJS) - ranlib $@ +$(TARGET): $(OBJS) + $(CC) -shared -o $@ $(OBJS) $(LDFLAGS) depend: $(SRCS) $(CC) -MM $(CFLAGS) $^ 1>.depend @@ -30,7 +39,12 @@ dist-clean: clean rm -f .depend clean: - rm -f $(OBJS) libvalerie.a + rm -f $(OBJS) $(TARGET) + +install: all + install -m 755 $(TARGET) $(prefix)/lib/libvalerie.so + mkdir -p "$(prefix)/include/mlt/valerie" + install -m 644 $(INCS) "$(prefix)/include/mlt/valerie" ifneq ($(wildcard .depend),) include .depend