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-11-25 01:28:49 +00:00
|
|
|
all: $(LIBNAME) do_drivers
|
2006-03-26 10:52:13 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|