added uninstall make targets
[melted] / src / inigo / Makefile
index eeecf7b..0e80dbf 100644 (file)
@@ -5,9 +5,9 @@ TARGET = inigo
 OBJS = inigo.o \
           io.o
 
-CFLAGS += -I.. -rdynamic
+CFLAGS += -I.. $(RDYNAMIC)
 
-LDFLAGS = -L ../framework -lmlt 
+LDFLAGS += -L../framework -lmlt 
 
 SRCS := $(OBJS:.o=.c)
 
@@ -19,15 +19,18 @@ $(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 "$(bindir)"
-       install -c -s -m 755 $(TARGET) "$(bindir)"
+       install -d "$(DESTDIR)$(bindir)"
+       install -c -s -m 755 $(TARGET) "$(DESTDIR)$(bindir)"
+
+uninstall:
+       rm -f "$(DESTDIR)$(bindir)/$(TARGET)"
 
 ifneq ($(wildcard .depend),)
 include .depend