2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
include config.mak
|
|
|
|
|
|
|
|
LIBNAME = libvo.a
|
|
|
|
|
2002-04-13 19:14:34 +00:00
|
|
|
SRCS=aspect.c aclib.c osd.c font_load.c spuenc.c video_out.c vo_null.c vo_pgm.c vo_md5.c vo_mpegpes.c x11_common.c vo_yuv4mpeg.c $(OPTIONAL_SRCS) sub.c
|
2001-05-24 21:09:13 +00:00
|
|
|
OBJS=$(SRCS:.c=.o)
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2002-01-11 17:20:43 +00:00
|
|
|
ifeq ($(VIDIX),yes)
|
2002-01-15 12:13:53 +00:00
|
|
|
SRCS += vosub_vidix.c
|
2002-01-11 17:20:43 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
CFLAGS = $(OPTFLAGS) -I. -I.. $(SDL_INC) $(X11_INC) $(EXTRA_INC) $(DVB_INC) -DMPG12PLAY #-Wall
|
|
|
|
ifeq ($(VIDIX),yes)
|
|
|
|
CFLAGS += -DVIDIX_PATH='"$(prefix)/lib/mplayer/vidix/"'
|
|
|
|
endif
|
2001-02-24 20:28:24 +00:00
|
|
|
# -I/usr/X11R6/include/
|
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
.c.o:
|
2001-03-02 21:42:17 +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 21:42:17 +00:00
|
|
|
rm -f Makefile.bak *.o *.a *~ .depend
|
2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
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 21:42:17 +00:00
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|