summaryrefslogtreecommitdiffstats
path: root/vidix/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'vidix/Makefile')
-rw-r--r--vidix/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/vidix/Makefile b/vidix/Makefile
index 0e964faa90..bd287b7131 100644
--- a/vidix/Makefile
+++ b/vidix/Makefile
@@ -1,5 +1,6 @@
-
LIBNAME = libvidix.a
+SUBDIRS = drivers
+DO_MAKE = @ for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
include ../config.mak
@@ -15,22 +16,30 @@ CFLAGS = $(OPTFLAGS) -W -Wall
.c.o:
$(CC) -c $(CFLAGS) -o $@ $<
+all: $(SUBDIRS) $(LIBNAME)
+ $(DO_MAKE)
+
$(LIBNAME): $(OBJS)
$(AR) r $(LIBNAME) $(OBJS)
-all: $(LIBNAME)
clean:
rm -f *.o *.a *~
+ $(DO_MAKE)
distclean:
rm -f test *.o *.a *~ .depend
+ $(DO_MAKE)
dep: depend
+ $(DO_MAKE)
depend:
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
+install:
+ $(DO_MAKE)
+
#
# include dependency files if they exist
#