2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
include config.mak
|
|
|
|
|
|
|
|
LIBNAME = libvo.a
|
|
|
|
|
2001-11-06 11:22:40 +00:00
|
|
|
SRCS=aspect.c aclib.c osd.c font_load.c video_out.c vo_null.c vo_pgm.c vo_md5.c vo_mpegpes.c x11_common.c $(OPTIONAL_SRCS) img_format.c
|
2001-05-24 21:09:13 +00:00
|
|
|
OBJS=$(SRCS:.c=.o)
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2001-07-12 15:35:52 +00:00
|
|
|
ifeq ($(TARGET_ARCH_X86),yes)
|
2001-10-17 18:24:50 +00:00
|
|
|
ifeq ($(TARGET_OS),Linux)
|
2001-11-13 17:13:33 +00:00
|
|
|
SRCS += vo_vesa.c vesa_lvo.c
|
2001-10-17 18:24:50 +00:00
|
|
|
endif
|
2001-07-12 15:35:52 +00:00
|
|
|
endif
|
|
|
|
|
2001-11-06 11:22:40 +00:00
|
|
|
CFLAGS = $(OPTFLAGS) -I. -I.. $(SDL_INC) $(X11_INC) $(EXTRA_INC) $(DVB_INC) -DMPG12PLAY #-Wall
|
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
|