mirror of
https://github.com/jakcron/nstool
synced 2024-11-22 05:29:30 +00:00
Updated top level makefile to include prog and lib level makefile logic.
This commit is contained in:
parent
2c3753e2bd
commit
5b26c370da
3 changed files with 15 additions and 28 deletions
10
lib/makefile
10
lib/makefile
|
@ -1,10 +0,0 @@
|
|||
LIBS = libfnd libpolarssl liblz4 libcrypto libcompress libes libpki libhac libhac-hb
|
||||
main: build
|
||||
|
||||
rebuild: clean build
|
||||
|
||||
build:
|
||||
@$(foreach lib,$(LIBS), cd $(lib) && $(MAKE) && cd ..;)
|
||||
|
||||
clean:
|
||||
@$(foreach lib,$(LIBS), cd $(lib) && $(MAKE) clean && cd ..;)
|
19
makefile
19
makefile
|
@ -1,11 +1,22 @@
|
|||
PROJECT_DIR = $(CURDIR)
|
||||
LIB_DIR = $(PROJECT_DIR)/lib
|
||||
PROGRAM_DIR = $(PROJECT_DIR)/programs
|
||||
BIN_DIR = $(PROJECT_DIR)/bin
|
||||
|
||||
LIBS = libfnd libpolarssl liblz4 libcrypto libcompress libes libpki libhac libhac-hb
|
||||
PROGS = nstool
|
||||
|
||||
main: build
|
||||
|
||||
rebuild: clean build
|
||||
|
||||
build:
|
||||
cd lib && $(MAKE) && cd ..
|
||||
cd programs && $(MAKE) && cd ..
|
||||
mkdir -p $(BIN_DIR)
|
||||
@$(foreach lib,$(LIBS), cd $(LIB_DIR)/$(lib) && $(MAKE) && cd $(PROJECT_DIR);)
|
||||
@$(foreach prog,$(PROGS), cd $(PROGRAM_DIR)/$(prog) && $(MAKE) && cd $(PROJECT_DIR) && cp -r $(PROGRAM_DIR)/$(prog)/bin/* $(BIN_DIR);)
|
||||
|
||||
|
||||
clean:
|
||||
cd lib && $(MAKE) clean && cd ..
|
||||
cd programs && $(MAKE) clean && cd ..
|
||||
rm -rf $(BIN_DIR)
|
||||
@$(foreach lib,$(LIBS), cd $(LIB_DIR)/$(lib) && $(MAKE) clean && cd $(PROJECT_DIR);)
|
||||
@$(foreach prog,$(PROGS), cd $(PROGRAM_DIR)/$(prog) && $(MAKE) clean && cd $(PROJECT_DIR);)
|
|
@ -1,14 +0,0 @@
|
|||
PROGS = nstool
|
||||
BIN_DIR = "../bin"
|
||||
|
||||
main: build
|
||||
|
||||
rebuild: clean build
|
||||
|
||||
build:
|
||||
mkdir -p $(BIN_DIR)
|
||||
@$(foreach prog,$(PROGS), cd $(prog) && $(MAKE) && cd .. && cp -r $(prog)/bin/* $(BIN_DIR);)
|
||||
|
||||
clean:
|
||||
@$(foreach prog,$(PROGS), cd $(prog) && $(MAKE) clean && cd ..;)
|
||||
rm -rf $(BIN_DIR)
|
Loading…
Reference in a new issue