1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-15 11:25:10 +00:00
mpv/vidix/Makefile
albeu b29282c847 Don't call make from shell constructs it prevent proper
build paralelization.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17959 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-26 10:52:13 +00:00

52 lines
713 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: $(SUBDIRS) $(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
$(MAKE) -C drivers dep
depend:
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
install:
$(MAKE) -C drivers install
uninstall:
$(MAKE) -C drivers uninstall
#
# include dependency files if they exist
#
ifneq ($(wildcard .depend),)
include .depend
endif