Mercurial > mplayer.hg
annotate libmpeg2/Makefile @ 1464:891d8b59f2f1
changed chunkid/size check
author | arpi |
---|---|
date | Wed, 08 Aug 2001 15:20:40 +0000 |
parents | dfccdda074e5 |
children | f6d2a4bc9bb5 |
rev | line source |
---|---|
1 | 1 |
2 LIBNAME = libmpeg2.a | |
3 | |
4 include ../config.mak | |
5 | |
36 | 6 SRCS = header.c idct.c idct_mmx.c motion_comp.c motion_comp_mmx.c slice.c stats.c decode.c |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
36
diff
changeset
|
7 OBJS = $(SRCS:.c=.o) |
1234 | 8 INCLUDE = -I. -I../libvo -I.. $(EXTRA_INC) |
27 | 9 CFLAGS = $(OPTFLAGS) $(INCLUDE) -DMPG12PLAY |
1 | 10 |
11 .SUFFIXES: .c .o | |
12 | |
13 # .PHONY: all clean | |
14 | |
15 .c.o: | |
27 | 16 $(CC) -c $(CFLAGS) -o $@ $< |
1 | 17 |
1010 | 18 $(LIBNAME): $(OBJS) |
1 | 19 $(AR) r $(LIBNAME) $(OBJS) |
20 | |
21 all: $(LIBNAME) | |
22 | |
23 clean: | |
24 rm -f *.o *.a *~ | |
25 | |
26 distclean: | |
27 | 27 rm -f Makefile.bak *.o *.a *~ .depend |
1 | 28 |
27 | 29 dep: depend |
1 | 30 |
1010 | 31 depend: |
866
91087aaea5c7
using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents:
36
diff
changeset
|
32 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
1 | 33 |
27 | 34 # |
35 # include dependency files if they exist | |
36 # | |
37 ifneq ($(wildcard .depend),) | |
38 include .depend | |
39 endif |