view vidix/Makefile @ 21386:3c20bb1ac789

r21398: improve description of lavf's i_certify_that_my_video_stream_does_not_use_b_frames r21399: fix suggested by Diego
author voroshil
date Thu, 30 Nov 2006 16:10:00 +0000
parents 6460b4f44089
children 909e1e707dc5
line wrap: on
line source

LIBNAME = libvidix.a

include ../config.mak

SRCS    = vidixlib.c
OBJS	= $(SRCS:.c=.o)

CFLAGS  = $(OPTFLAGS)

.SUFFIXES: .c .o

# .PHONY: all clean

.c.o:
	$(CC) -c $(CFLAGS) -o $@ $<

all:	$(LIBNAME) do_drivers

do_drivers:
	$(MAKE) -C drivers

$(LIBNAME):	$(OBJS)
	$(AR) r $(LIBNAME) $(OBJS)
	$(RANLIB) $(LIBNAME)

clean:
	rm -f *.o *.a *~
	$(MAKE) -C drivers clean

distclean: clean
	rm -f .depend test
	$(MAKE) -C drivers distclean

dep depend:
	$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
	$(MAKE) -C drivers depend

ifneq ($(wildcard .depend),)
include .depend
endif