Independed compilation of SUBDIRS
[libav.git] / postproc / Makefile
CommitLineData
44d01eea
NK
1
2include ../config.mak
3
4LIBNAME = libpostproc.a
5
6SRCS=postprocess.c swscale.c
7OBJS=$(SRCS:.c=.o)
8
9CFLAGS = $(OPTFLAGS) -I. -I.. -Wall
10# -I/usr/X11R6/include/
11
12.SUFFIXES: .c .o
13
14# .PHONY: all clean
15
16.c.o:
17 $(CC) -c $(CFLAGS) -o $@ $<
18
19$(LIBNAME): $(OBJS)
20 $(AR) r $(LIBNAME) $(OBJS)
21
22all: $(LIBNAME)
23
24clean:
25 rm -f *.o *.a *~
26
27distclean:
28 rm -f Makefile.bak *.o *.a *~ .depend
29
30dep: depend
31
32depend:
33 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
34
35#
36# include dependency files if they exist
37#
38ifneq ($(wildcard .depend),)
39include .depend
40endif