Mercurial > mplayer.hg
comparison libmpeg2/Makefile @ 27:f0f2a9174225
New dependency system
author | arpi_esp |
---|---|
date | Fri, 02 Mar 2001 22:05:04 +0000 |
parents | 3b5f5d1c5041 |
children | 846535ace7a2 |
comparison
equal
deleted
inserted
replaced
26:8ee4acebff58 | 27:f0f2a9174225 |
---|---|
3 | 3 |
4 include ../config.mak | 4 include ../config.mak |
5 | 5 |
6 SRCS = decode.c header.c idct.c idct_mmx.c motion_comp.c motion_comp_mmx.c slice.c stats.c | 6 SRCS = decode.c header.c idct.c idct_mmx.c motion_comp.c motion_comp_mmx.c slice.c stats.c |
7 OBJS = decode.o header.o idct.o idct_mmx.o motion_comp.o motion_comp_mmx.o slice.o stats.o | 7 OBJS = decode.o header.o idct.o idct_mmx.o motion_comp.o motion_comp_mmx.o slice.o stats.o |
8 CFLAGS = $(OPTFLAGS) -DMPG12PLAY | |
9 INCLUDE = -I. -I../libvo -I.. | 8 INCLUDE = -I. -I../libvo -I.. |
9 CFLAGS = $(OPTFLAGS) $(INCLUDE) -DMPG12PLAY | |
10 | 10 |
11 .SUFFIXES: .c .o | 11 .SUFFIXES: .c .o |
12 | 12 |
13 # .PHONY: all clean | 13 # .PHONY: all clean |
14 | 14 |
15 .c.o: | 15 .c.o: |
16 $(CC) -c $(CFLAGS) $(INCLUDE) -o $@ $< | 16 $(CC) -c $(CFLAGS) -o $@ $< |
17 | 17 |
18 $(LIBNAME): $(OBJS) | 18 $(LIBNAME): .depend $(OBJS) |
19 $(AR) r $(LIBNAME) $(OBJS) | 19 $(AR) r $(LIBNAME) $(OBJS) |
20 | 20 |
21 all: $(LIBNAME) | 21 all: $(LIBNAME) |
22 | 22 |
23 clean: | 23 clean: |
24 rm -f *.o *.a *~ | 24 rm -f *.o *.a *~ |
25 | 25 |
26 distclean: | 26 distclean: |
27 makedepend | 27 rm -f Makefile.bak *.o *.a *~ .depend |
28 rm -f Makefile.bak *.o *.a *~ | |
29 | 28 |
30 dep: depend | 29 dep: depend |
30 depend: .depend | |
31 | 31 |
32 depend: | 32 .depend: Makefile ../config.mak ../config.h |
33 makedepend -- $(CFLAGS) -- $(SRCS) &> /dev/null | 33 makedepend -f- -- $(CFLAGS) -- $(SRCS) 1>.depend 2>/dev/null |
34 | 34 |
35 # DO NOT DELETE | 35 # |
36 # include dependency files if they exist | |
37 # | |
38 ifneq ($(wildcard .depend),) | |
39 include .depend | |
40 endif |