spelling
[libav.git] / libpostproc / Makefile
dissimilarity index 62%
index 60319ba..a39470b 100644 (file)
@@ -1,27 +1,26 @@
-
-include ../config.mak
-
-# Overload incdir, postproc include files go in a different directory.
-incdir=$(prefix)/include/postproc
-
-NAME=postproc
-ifeq ($(BUILD_SHARED),yes)
-LIBVERSION=$(SPPVERSION)
-LIBMAJOR=$(SPPMAJOR)
-endif
-
-STATIC_OBJS=postprocess.o
-SHARED_OBJS=postprocess_pic.o
-
-HEADERS = postprocess.h
-
-CFLAGS  = $(OPTFLAGS) $(MLIB_INC) -I. -I.. -I$(SRC_PATH)/libavcodec $(EXTRA_INC)
-# -I/usr/X11R6/include/
-
-include $(SRC_PATH)/common.mak
-
-ifeq ($(BUILD_SHARED),yes)
-postprocess_pic.o: postprocess.c
-       $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o $@ $<
-endif
-
+
+include ../config.mak
+
+# Overload incdir, postproc include files go in a different directory.
+INCDIR=$(prefix)/include/postproc
+
+EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
+
+NAME=postproc
+LIBVERSION=$(SPPVERSION)
+LIBMAJOR=$(SPPMAJOR)
+
+HEADERS = postprocess.h
+
+include ../common.mak
+
+$(LIBNAME): postprocess.o
+$(SLIBNAME_WITH_MAJOR): postprocess_pic.o
+
+depend dep: postprocess.c
+
+postprocess_pic.o: postprocess.c
+       $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -o $@ $<
+
+uninstall-headers::
+       -rmdir "$(prefix)/include/postproc"