openap-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[openap-cvs] : openap-main/make rules.mk,NONE,1.1 tools.mk,1.1,1.2


From: David Kimdon <address@hidden>
Subject: [openap-cvs] : openap-main/make rules.mk,NONE,1.1 tools.mk,1.1,1.2
Date: Thu, 18 Jul 2002 20:38:17 -0400

Update of /cvsroot/openap/openap-main/make
In directory subversions:/tmp/cvs-serv24646

Modified Files:
        tools.mk 
Added Files:
        rules.mk 
Log Message:
make rules that normal people don't need to look at.


--- NEW FILE ---
include make/tools.mk

$(KERNEL_DIR)/.config :
        @if [ -f config/$(TARGET)/$(FLAVOR)config.kernel ] ; then \
                echo "Kernel config from 
config/$(TARGET)/$(FLAVOR)config.kernel"; \
                cp config/$(TARGET)/$(FLAVOR)config.kernel 
$(KERNEL_DIR)/.config; \
        else \
                echo "No default kernel configuration found."; \
                exit 1; \
        fi

$(TOPDIR)/.config :
        @if [ -f config/$(TARGET)/$(FLAVOR)config ] ; then \
                echo "Top config from config/$(TARGET)/$(FLAVOR)config"; \
                cp config/$(TARGET)/$(FLAVOR)config $(TOPDIR)/.config; \
        else \
                echo "No default configuration found."; \
                exit 1; \
        fi

Index: tools.mk
===================================================================
RCS file: /cvsroot/openap/openap-main/make/tools.mk,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- tools.mk    18 Jul 2002 22:02:24 -0000      1.1
+++ tools.mk    19 Jul 2002 00:38:15 -0000      1.2
@@ -1,6 +1,7 @@
 
-# Create the cross toolchain.
-tools:
+
+tools: $(STAMPDIR)/.tools
+$(STAMPDIR)/.tools :
        mkdir -p $(CONFIG_PREFIX) || \
                (echo "failed to create $(CONFIG_PREFIX)"; exit 1)
        mkdir -p build/
@@ -12,3 +13,13 @@
                ARCH=$(ARCH) | \
                tee build.log
        $(MAKE) CC=gcc -C $(KERNEL_DIR)/scripts/cramfs/
+       touch $(STAMPDIR)/.tools
+
+LIBS=libpcap libnet
+
+libs:
+       for dir in $(LIBS) ; do \
+               if ! ( cd $$dir && $(MAKE) -f ./i802/rules install) ; then \
+                       exit 1 ; \
+               fi \
+       done




reply via email to

[Prev in Thread] Current Thread [Next in Thread]