#******************************************************************************* #* FILE PURPOSE: Top level makefile for Creating Component Libraries for ARM #* architectures #******************************************************************************* #* FILE NAME: makefile #* #* DESCRIPTION: Defines Compiler tools paths, libraries , Build Options #* #* #******************************************************************************* #* # (Mandatory) Specify where various tools are installed. # Output for prebuilt generated libraries export ARMV7LIBDIR ?= ./lib export ARMV7OBJDIR ?= ./obj # ROOT Directory export ROOTDIR := ../../.. # INCLUDE Directory export INCDIR := ../;$(PDK_INSTALL_PATH);$(ROOTDIR) # Common Macros used in make ifndef RM export RM = rm -f endif ifndef CP export CP = cp -p endif export MKDIR = mkdir -p ifndef RMDIR export RMDIR = rm -rf endif ifndef SED export SED = sed endif ifndef MAKE export MAKE = make endif # PHONY Targets .PHONY: lib tests examples all clean # all rule all: .executables .executables: lib tests examples lib: # Make rule to create $(ARMV7LIBDIR)/libnetapi.a library lib: $(ARMV7LIBDIR)/libnetapi.a $(ARMV7LIBDIR)/libnetapi.a: -@echo Building library... @$(MAKE) -f ./build/Makefile $@ # Rule to clean $(ARMV7LIBDIR)/libnetapi.a library clean: -@echo Cleaning netapi package... @$(MAKE) -f ./build/Makefile $@ @$(MAKE) -f ./test/build/Makefile $@ # Make rule to create tests tests: -@echo compiling tests ... @$(MAKE) -f ./test/build/Makefile $@ examples: