2002-01-05 10:13:25 +00:00
|
|
|
LIBNAME = libvidix.a
|
|
|
|
|
|
|
|
include ../config.mak
|
|
|
|
|
|
|
|
SRCS = vidixlib.c
|
|
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
|
2002-08-22 23:29:46 +00:00
|
|
|
CFLAGS = $(OPTFLAGS)
|
2002-01-05 10:13:25 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
2006-03-26 10:52:13 +00:00
|
|
|
all: $(SUBDIRS) $(LIBNAME) do_drivers
|
|
|
|
|
|
|
|
do_drivers:
|
|
|
|
$(MAKE) -C drivers
|
2002-01-07 09:28:22 +00:00
|
|
|
|
2002-01-05 10:13:25 +00:00
|
|
|
$(LIBNAME): $(OBJS)
|
|
|
|
$(AR) r $(LIBNAME) $(OBJS)
|
2004-06-24 12:52:17 +00:00
|
|
|
$(RANLIB) $(LIBNAME)
|
2002-01-05 10:13:25 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.a *~
|
2006-03-26 10:52:13 +00:00
|
|
|
$(MAKE) -C drivers clean
|
2002-01-05 10:13:25 +00:00
|
|
|
|
2006-01-27 00:06:42 +00:00
|
|
|
distclean: clean
|
|
|
|
rm -f .depend test
|
2006-03-26 10:52:13 +00:00
|
|
|
$(MAKE) -C drivers distclean
|
2002-01-05 10:13:25 +00:00
|
|
|
|
2006-11-20 11:18:01 +00:00
|
|
|
dep depend:
|
2002-01-05 10:13:25 +00:00
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
2006-11-20 11:18:01 +00:00
|
|
|
$(MAKE) -C drivers depend
|
2002-01-05 10:13:25 +00:00
|
|
|
|
2002-01-07 09:28:22 +00:00
|
|
|
install:
|
2006-03-26 10:52:13 +00:00
|
|
|
$(MAKE) -C drivers install
|
2002-01-07 09:28:22 +00:00
|
|
|
|
2004-10-20 14:20:07 +00:00
|
|
|
uninstall:
|
2006-03-26 10:52:13 +00:00
|
|
|
$(MAKE) -C drivers uninstall
|
2004-10-20 14:20:07 +00:00
|
|
|
|
2002-01-05 10:13:25 +00:00
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|