2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
include config.mak
|
|
|
|
|
|
|
|
LIBNAME = libvo.a
|
|
|
|
|
2004-10-23 22:43:19 +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
|
2005-04-29 11:41:07 +00:00
|
|
|
OBJS_TEMP=$(basename $(SRCS))
|
|
|
|
OBJS=$(OBJS_TEMP:%=%.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
|
|
|
|
2005-05-14 21:35:35 +00:00
|
|
|
.SUFFIXES: .c .o .m
|
2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
# .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
|
|
|
|
2005-04-29 11:41:07 +00:00
|
|
|
.m.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
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
|