mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 17:12:36 +00:00
5dbf242b15
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21350 b3059339-0415-0410-9bf9-f77b7e298cf2
41 lines
568 B
Makefile
41 lines
568 B
Makefile
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
|