aboutsummaryrefslogtreecommitdiffhomepage
path: root/vidix
diff options
context:
space:
mode:
Diffstat (limited to 'vidix')
-rw-r--r--vidix/Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/vidix/Makefile b/vidix/Makefile
index b840c7615e..65da0a0ed5 100644
--- a/vidix/Makefile
+++ b/vidix/Makefile
@@ -1,6 +1,4 @@
LIBNAME = libvidix.a
-SUBDIRS = drivers
-DO_MAKE = @ for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
include ../config.mak
@@ -16,8 +14,10 @@ CFLAGS = $(OPTFLAGS)
.c.o:
$(CC) -c $(CFLAGS) -o $@ $<
-all: $(SUBDIRS) $(LIBNAME)
- $(DO_MAKE)
+all: $(SUBDIRS) $(LIBNAME) do_drivers
+
+do_drivers:
+ $(MAKE) -C drivers
$(LIBNAME): $(OBJS)
$(AR) r $(LIBNAME) $(OBJS)
@@ -25,23 +25,23 @@ $(LIBNAME): $(OBJS)
clean:
rm -f *.o *.a *~
- $(DO_MAKE)
+ $(MAKE) -C drivers clean
distclean: clean
rm -f .depend test
- $(DO_MAKE)
+ $(MAKE) -C drivers distclean
dep: depend
- $(DO_MAKE)
+ $(MAKE) -C drivers dep
depend:
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
install:
- $(DO_MAKE)
+ $(MAKE) -C drivers install
uninstall:
- $(DO_MAKE)
+ $(MAKE) -C drivers uninstall
#
# include dependency files if they exist