Changeset 9


Ignore:
Timestamp:
12/15/2006 10:25:41 AM (13 years ago)
Author:
art
Message:

Makefiles are now including subdirectories

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Bindings/Makefile

    r8 r9  
    11#------------------------------------ 
    2 # Bypass the build target to 
    3 # subdirectories 
     2# Bypass the targets to subdirs 
    43#------------------------------------ 
    5 all: glfw_make 
     4include ../Makedefs 
    65 
    7 clean: glfw_clean 
     6SUBDIRS = glfw 
     7         
     8all: 
     9        $(MAKE_TARGET_BEGIN) all $(MAKE_TARGET_END) 
    810 
    9  
    10 glfw_clean: 
    11         (cd glfw && make clean) 
    12          
    13 glfw_make: 
    14         (cd glfw && make all) 
    15          
     11clean: 
     12        $(MAKE_TARGET_BEGIN) clean $(MAKE_TARGET_END) 
  • Makedefs

    r8 r9  
    2828                 
    2929 
     30#----------------------------------------------- 
     31# Define variables for simplier creating 
     32# makefiles in subdirectories 
     33#----------------------------------------------- 
     34MAKE_TARGET_BEGIN =\ 
     35        $(SHELL) -ec 'subd="$(SUBDIRS)";\ 
     36        for f in $$subd; do\ 
     37                (cd $$f && make  
    3038                 
     39MAKE_TARGET_END = ); done;' 
     40                 
  • Makefile

    r8 r9  
    1 TOPDIR= ./ 
    21 
    3 #----------------------------------------------- 
    4 # Include defs for defining the variables 
    5 #----------------------------------------------- 
    6 include $(TOPDIR)/Makedefs 
     2include Makedefs 
    73 
    8 #----------------------------------------------- 
    9 # Rules for building engine and it's components 
    10 #----------------------------------------------- 
    11 all: core bindings plugins 
    12 clean: bindings_clean plugins_clean core_clean 
     4SUBDIRS = nrEngine Bindings Plugins 
     5         
     6all: 
     7        $(MAKE_TARGET_BEGIN) all $(MAKE_TARGET_END) 
    138 
    14 bindings_clean: 
    15         @ echo "Clean bindings" 
    16         @ (cd Bindings && make clean) 
     9clean: 
     10        $(MAKE_TARGET_BEGIN) clean $(MAKE_TARGET_END) 
    1711         
    18 plugins_clean: 
    19         @ echo "Clean plugins" 
    20         @ (cd Plugins && make clean) 
    2112         
    22 core_clean: 
    23         @ echo "Clean nrEngine-Core" 
    24         @ (cd nrEngine/src && make clean) 
    25  
    26 bindings: 
    27         @ echo "Compile engine's bindings" 
    28         @ (cd Bindings && make all) 
    29          
    30 plugins: 
    31         @ echo "Compile plugins for nrEngine" 
    32         @ (cd Plugins && make all) 
    33          
    34 core: 
    35         @ echo "Start compiling the nrEngine-Core" 
    36         @ (cd nrEngine/src && make all) 
    37  
    38  
    39 #----------------------------------------------- 
    40 # Include rules for handling the objects 
    41 #----------------------------------------------- 
    42 include $(TOPDIR)/Makerules 
  • Plugins/Makefile

    r8 r9  
    11#------------------------------------ 
    2 # Bypass the build target to 
    3 # subdirectories 
     2# Bypass the targets to subdirs 
    43#------------------------------------ 
    5 all: luaScripting_make 
     4include ../Makedefs 
    65 
    7 clean: luaScripting_clean 
     6SUBDIRS = luaScripting 
     7         
     8all: 
     9        $(MAKE_TARGET_BEGIN) all $(MAKE_TARGET_END) 
    810 
    9  
    10 luaScripting_clean: 
    11         (cd luaScripting && make clean) 
    12          
    13 luaScripting_make: 
    14         (cd luaScripting && make all) 
    15          
     11clean: 
     12        $(MAKE_TARGET_BEGIN) clean $(MAKE_TARGET_END) 
Note: See TracChangeset for help on using the changeset viewer.