added uninstall make targets
[melted] / src / humperdink / Makefile
index 86fc404..47ba3ed 100644 (file)
@@ -1,12 +1,14 @@
+include ../../config.mak
+
 TARGET = humperdink
 
 OBJS = client.o \
        io.o \
           remote.o
 
-CFLAGS = -O3 -I .. -Wall -g -D_FILE_OFFSET_BITS=64 -pthread -rdynamic
+CFLAGS += -I.. $(RDYNAMIC)
 
-LDFLAGS = -L ../valerie -lvalerie
+LDFLAGS += -L../valerie -L../framework -lvalerie -lmlt
 
 SRCS := $(OBJS:.o=.c)
 
@@ -18,12 +20,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