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
|
2001-05-24 21:09:13 +00:00
|
|
|
OBJS = $(SRCS:.c=.o)
|
2001-06-26 23:15:58 +00:00
|
|
|
INCLUDE = -I. -I../libvo -I.. $(EXTRA_INC)
|
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-06-04 19:33:28 +00:00
|
|
|
$(LIBNAME): $(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
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2001-06-04 19:33:28 +00:00
|
|
|
depend:
|
2001-05-24 21:09:13 +00:00
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
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
|