Mercurial > mplayer.hg
annotate libmpeg2/Makefile @ 1025:b3dde72791ed
Kernel version checking improvements
author | nickols_k |
---|---|
date | Tue, 05 Jun 2001 08:12:00 +0000 |
parents | 6d3a6d42c831 |
children | dfccdda074e5 |
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) |
1 | 8 INCLUDE = -I. -I../libvo -I.. |
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 |