2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
LIBNAME = libmpeg2.a
|
|
|
|
|
|
|
|
include ../config.mak
|
|
|
|
|
2001-03-04 21:01:54 +00:00
|
|
|
SRCS = header.c idct.c idct_mmx.c motion_comp.c motion_comp_mmx.c slice.c stats.c decode.c
|
|
|
|
OBJS = header.o idct.o idct_mmx.o motion_comp.o motion_comp_mmx.o slice.o stats.o decode.o
|
2001-02-24 20:28:24 +00:00
|
|
|
INCLUDE = -I. -I../libvo -I..
|
2001-03-02 22:05:04 +00:00
|
|
|
CFLAGS = $(OPTFLAGS) $(INCLUDE) -DMPG12PLAY
|
2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
.c.o:
|
2001-03-02 22:05:04 +00:00
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2001-03-02 22:05:04 +00:00
|
|
|
$(LIBNAME): .depend $(OBJS)
|
2001-02-24 20:28:24 +00:00
|
|
|
$(AR) r $(LIBNAME) $(OBJS)
|
|
|
|
|
|
|
|
all: $(LIBNAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.a *~
|
|
|
|
|
|
|
|
distclean:
|
2001-03-02 22:05:04 +00:00
|
|
|
rm -f Makefile.bak *.o *.a *~ .depend
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2001-03-02 22:05:04 +00:00
|
|
|
dep: depend
|
|
|
|
depend: .depend
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2001-03-02 22:05:04 +00:00
|
|
|
.depend: Makefile ../config.mak ../config.h
|
|
|
|
makedepend -f- -- $(CFLAGS) -- $(SRCS) 1>.depend 2>/dev/null
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2001-03-02 22:05:04 +00:00
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|