2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
include config.mak
|
|
|
|
|
|
|
|
LIBNAME = libvo.a
|
|
|
|
|
2004-09-29 01:46:30 +00:00
|
|
|
SRCS=geometry.c aspect.c aclib.c osd.c font_load.c gtf.c spuenc.c video_out.c vo_null.c vo_mpegpes.c vo_yuv4mpeg.c $(OPTIONAL_SRCS) sub.c font_load_ft.c vo_pnm.c vo_md5sum.c md5sum.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
|
|
|
|
|
2004-01-10 09:48:15 +00:00
|
|
|
CFLAGS = $(OPTFLAGS) -I. -I.. -I../osdep $(FREETYPE_INC) $(SDL_INC) $(X11_INC) $(EXTRA_INC) $(DXR2_INC) $(DIRECTFB_INC) -DMPG12PLAY #-Wall
|
2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
.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)
|
2004-06-24 13:54:08 +00:00
|
|
|
$(RANLIB) $(LIBNAME)
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2003-08-17 20:56:40 +00:00
|
|
|
vo_mpegpes.o: vo_mpegpes.c
|
|
|
|
$(CC) -c $(CFLAGS) $(DVB_INC) -o $@ $<
|
|
|
|
|
2001-02-24 20:28:24 +00:00
|
|
|
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
|