1 #******************************************************************************* 2 # makefile 3 # Description: 4 # gnu make makefile for elftosb executable 5 6 #******************************************************************************* 7 # Environment 8 9 # UNAMES is going to be set to either "Linux" or "CYGWIN_NT-5.1" 10 UNAMES = $(shell uname -s) 11 12 ifeq ("${UNAMES}", "Linux") 13 14 SRC_DIR = $(shell pwd) 15 BUILD_DIR = bld/linux 16 17 else 18 ifeq ("${UNAMES}", "CYGWIN_NT-5.1") 19 20 SRC_DIR = $(shell pwd) 21 BUILD_DIR = bld/cygwin 22 23 endif 24 endif 25 26 27 #******************************************************************************* 28 # Targets 29 30 all clean elftosb sbtool keygen: 31 @mkdir -p ${BUILD_DIR}; 32 make -C ${BUILD_DIR} -f ${SRC_DIR}/makefile.rules SRC_DIR=${SRC_DIR} $@; 33