Make pp_help a constant array of characters to move it to .rodata.
[ffmpeg.git] / libpostproc / Makefile
index b6ac1a6..a39470b 100644 (file)
@@ -2,26 +2,25 @@
 include ../config.mak
 
 # Overload incdir, postproc include files go in a different directory.
-incdir=$(prefix)/include/postproc
+INCDIR=$(prefix)/include/postproc
+
+EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
 
 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) -I.. -I$(SRC_PATH)/libavcodec
-# -I/usr/X11R6/include/
+include ../common.mak
+
+$(LIBNAME): postprocess.o
+$(SLIBNAME_WITH_MAJOR): postprocess_pic.o
 
-include $(SRC_PATH)/common.mak
+depend dep: postprocess.c
 
-ifeq ($(BUILD_SHARED),yes)
 postprocess_pic.o: postprocess.c
        $(CC) -c $(CFLAGS) -fomit-frame-pointer -fPIC -DPIC -o $@ $<
-endif
 
+uninstall-headers::
+       -rmdir "$(prefix)/include/postproc"