synced with r22428
[mplayer/greg.git] / vidix / Makefile
blob3eb6e43d25f04c082a2702879f810337fd83dbd0
1 LIBNAME = libvidix.a
3 include ../config.mak
5 SRCS = vidixlib.c
6 OBJS = $(SRCS:.c=.o)
8 CFLAGS = $(OPTFLAGS)
10 .SUFFIXES: .c .o
12 # .PHONY: all clean
14 .c.o:
15 $(CC) -c $(CFLAGS) -o $@ $<
17 all: $(LIBNAME) do_drivers
19 do_drivers:
20 $(MAKE) -C drivers
22 $(LIBNAME): $(OBJS)
23 $(AR) r $(LIBNAME) $(OBJS)
24 $(RANLIB) $(LIBNAME)
26 clean:
27 rm -f *.o *.a *~
28 $(MAKE) -C drivers clean
30 distclean: clean
31 rm -f .depend test
32 $(MAKE) -C drivers distclean
34 dep depend:
35 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
36 $(MAKE) -C drivers depend
38 -include .depend