]> git.sesse.net Git - mlt/blobdiff - src/modules/kino/Makefile
Avoid unnecessary compilation when running "./configure; make; make install" multiple...
[mlt] / src / modules / kino / Makefile
index 74abb40791d061ce9f8592724aeff900c0de78fb..2e917dc4f045392d9ed5a8b6dba22c636fcdf37c 100644 (file)
@@ -1,5 +1,5 @@
-CFLAGS += -I../../
-CXXFLAGS += $(CFLAGS) -Wno-deprecated
+CFLAGS := -I../../ $(CFLAGS)
+CXXFLAGS := $(CFLAGS) -Wno-deprecated $(CXXFLAGS)
 
 LDFLAGS += -L../../framework -lmlt -lpthread
 
@@ -30,7 +30,7 @@ SRCS := $(OBJS:.o=.c) $(CPPOBJS:.o=.cc)
 all:   $(TARGET)
 
 $(TARGET): $(OBJS) $(CPPOBJS)
-               $(CC) -shared -o $@ $(OBJS) $(CPPOBJS) $(LDFLAGS)
+               $(CXX) -shared -o $@ $(OBJS) $(CPPOBJS) $(LDFLAGS)
 
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
@@ -42,7 +42,7 @@ clean:
                rm -f $(OBJS) $(TARGET) $(CPPOBJS)
 
 install: all
-       install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
+       install -m 755 $(TARGET) "$(DESTDIR)$(moduledir)"
 
 ifneq ($(wildcard .depend),)
 include .depend