Mercurial > mplayer.hg
comparison postproc/Makefile @ 2444:ec8ff6ea4af6
Independed compilation of SUBDIRS
author | nick |
---|---|
date | Wed, 24 Oct 2001 07:34:41 +0000 |
parents | |
children | 13e1c5ab417a |
comparison
equal
deleted
inserted
replaced
2443:f30cb7e3ae83 | 2444:ec8ff6ea4af6 |
---|---|
1 | |
2 include ../config.mak | |
3 | |
4 LIBNAME = libpostproc.a | |
5 | |
6 SRCS=postprocess.c swscale.c | |
7 OBJS=$(SRCS:.c=.o) | |
8 | |
9 CFLAGS = $(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 | |
22 all: $(LIBNAME) | |
23 | |
24 clean: | |
25 rm -f *.o *.a *~ | |
26 | |
27 distclean: | |
28 rm -f Makefile.bak *.o *.a *~ .depend | |
29 | |
30 dep: depend | |
31 | |
32 depend: | |
33 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
34 | |
35 # | |
36 # include dependency files if they exist | |
37 # | |
38 ifneq ($(wildcard .depend),) | |
39 include .depend | |
40 endif |