comparison libmpeg2/Makefile @ 866:91087aaea5c7

using gcc -MM instead of makedepend, make OBJS from SRCS where possible
author arpi_esp
date Thu, 24 May 2001 21:09:13 +0000
parents 846535ace7a2
children 6d3a6d42c831
comparison
equal deleted inserted replaced
865:83919c1b9924 866:91087aaea5c7
2 LIBNAME = libmpeg2.a 2 LIBNAME = libmpeg2.a
3 3
4 include ../config.mak 4 include ../config.mak
5 5
6 SRCS = header.c idct.c idct_mmx.c motion_comp.c motion_comp_mmx.c slice.c stats.c decode.c 6 SRCS = header.c idct.c idct_mmx.c motion_comp.c motion_comp_mmx.c slice.c stats.c decode.c
7 OBJS = header.o idct.o idct_mmx.o motion_comp.o motion_comp_mmx.o slice.o stats.o decode.o 7 OBJS = $(SRCS:.c=.o)
8 INCLUDE = -I. -I../libvo -I.. 8 INCLUDE = -I. -I../libvo -I..
9 CFLAGS = $(OPTFLAGS) $(INCLUDE) -DMPG12PLAY 9 CFLAGS = $(OPTFLAGS) $(INCLUDE) -DMPG12PLAY
10 10
11 .SUFFIXES: .c .o 11 .SUFFIXES: .c .o
12 12
28 28
29 dep: depend 29 dep: depend
30 depend: .depend 30 depend: .depend
31 31
32 .depend: Makefile ../config.mak ../config.h 32 .depend: Makefile ../config.mak ../config.h
33 makedepend -f- -- $(CFLAGS) -- $(SRCS) 1>.depend 2>/dev/null 33 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
34 34
35 # 35 #
36 # include dependency files if they exist 36 # include dependency files if they exist
37 # 37 #
38 ifneq ($(wildcard .depend),) 38 ifneq ($(wildcard .depend),)