X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fvalerie%2FMakefile;h=7322577fb736a8f05707808c83037331b8424a80;hb=521423f4869254f213455a239688159c283594b0;hp=908c432f8f7a763afc5cc638340d3f419ca4e39b;hpb=661165812e3410fe2f6f49d7af882b36a0efcf82;p=melted diff --git a/src/valerie/Makefile b/src/valerie/Makefile index 908c432..7322577 100644 --- a/src/valerie/Makefile +++ b/src/valerie/Makefile @@ -1,5 +1,5 @@ -AR = ar +TARGET = libvalerie.so OBJS = valerie.o \ valerie_notifier.o \ @@ -13,15 +13,19 @@ OBJS = valerie.o \ SRCS := $(OBJS:.o=.c) -CFLAGS=-Wall -g -D_FILE_OFFSET_BITS=64 -pthread +CFLAGS=-O3 -Wall -g -D_FILE_OFFSET_BITS=64 -pthread LDFLAGS=-ldv -lpthread -all: libvalerie.a +ifeq ($(MLT_GPROF),true) +CFLAGS+=-p +LDFLAGS+=-p +endif + +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 +34,7 @@ dist-clean: clean rm -f .depend clean: - rm -f $(OBJS) libvalerie.a + rm -f $(OBJS) $(TARGET) ifneq ($(wildcard .depend),) include .depend