albino/Makefile, inigo/Makefile, humperdink/Makefile, miracle/Makefile:
[melted] / src / inigo / Makefile
index 46f21f8..c206a81 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) -DVERSION=\"$(version)\"
 
-LDFLAGS = -L ../framework -lmlt 
-
-ifeq ($(MLT_GPROF),true)
-CFLAGS+=-p
-LDFLAGS+=-p
-endif
+LDFLAGS += -L../framework -lmlt -lpthread
 
 SRCS := $(OBJS:.o=.c)
 
@@ -24,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