+ DESTDIR patch from Anthony Green (green at redhat dot com) - many thanks :-)
[melted] / src / inigo / Makefile
index 46f21f8..02439ca 100644 (file)
@@ -5,14 +5,9 @@ TARGET = inigo
 OBJS = inigo.o \
           io.o
 
-CFLAGS = -O4 -pipe -ffast-math -fomit-frame-pointer -I .. -Wall -g -D_FILE_OFFSET_BITS=64 -pthread -rdynamic
+CFLAGS += -I.. $(RDYNAMIC)
 
-LDFLAGS = -L ../framework -lmlt 
-
-ifeq ($(MLT_GPROF),true)
-CFLAGS+=-p
-LDFLAGS+=-p
-endif
+LDFLAGS += -L../framework -lmlt 
 
 SRCS := $(OBJS:.o=.c)
 
@@ -31,8 +26,8 @@ clean:
                rm -f $(OBJS) $(TARGET)
 
 install:       all
-       install -d "$(bindir)"
-       install -c -s -m 755 $(TARGET) "$(bindir)"
+       install -d "$(DESTDIR)$(bindir)"
+       install -c -s -m 755 $(TARGET) "$(DESTDIR)$(bindir)"
 
 ifneq ($(wildcard .depend),)
 include .depend