make install fix
[melted] / src / inigo / Makefile
index b9e0b5d..0b67a31 100644 (file)
@@ -1,3 +1,5 @@
+include ../../config.mak
+
 TARGET = inigo
 
 OBJS = inigo.o \
@@ -7,6 +9,11 @@ CFLAGS = -O3 -I .. -Wall -g -D_FILE_OFFSET_BITS=64 -pthread -rdynamic
 
 LDFLAGS = -L ../framework -lmlt 
 
+ifeq ($(MLT_GPROF),true)
+CFLAGS+=-p
+LDFLAGS+=-p
+endif
+
 SRCS := $(OBJS:.o=.c)
 
 all: $(TARGET)
@@ -23,6 +30,10 @@ dist-clean:  clean
 clean: 
                rm -f $(OBJS) $(TARGET)
 
+install:       all
+       install -d "$(bindir)"
+       install -c -s -m 755 $(TARGET) "$(bindir)"
+
 ifneq ($(wildcard .depend),)
 include .depend
 endif