]> git.sesse.net Git - mlt/blobdiff - src/inigo/Makefile
added uninstall make targets
[mlt] / src / inigo / Makefile
index 6fac85d684388cf07085bad317bdb895f5aec79e..0e80dbfb1a1039d7472a35ccb2808f02893ea705 100644 (file)
@@ -1,16 +1,13 @@
+include ../../config.mak
+
 TARGET = inigo
 
 OBJS = inigo.o \
           io.o
 
-CFLAGS = -O3 -I .. -Wall -g -D_FILE_OFFSET_BITS=64 -pthread -rdynamic
-
-LDFLAGS = -L ../framework -lmlt 
+CFLAGS += -I.. $(RDYNAMIC)
 
-ifeq ($(MLT_GPROF),true)
-CFLAGS+=-p
-LDFLAGS+=-p
-endif
+LDFLAGS += -L../framework -lmlt 
 
 SRCS := $(OBJS:.o=.c)
 
@@ -22,12 +19,19 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
                rm -f $(OBJS) $(TARGET)
 
+install:       all
+       install -d "$(DESTDIR)$(bindir)"
+       install -c -s -m 755 $(TARGET) "$(DESTDIR)$(bindir)"
+
+uninstall:
+       rm -f "$(DESTDIR)$(bindir)/$(TARGET)"
+
 ifneq ($(wildcard .depend),)
 include .depend
 endif