1 #*******************************************************************************
4 # gnu make makefile for elftosb executable
6 #*******************************************************************************
9 # UNAMES is going to be set to either "Linux" or "CYGWIN_NT-5.1"
10 UNAMES = $(shell uname -s)
12 ifeq ("${UNAMES}", "Linux")
14 SRC_DIR = $(shell pwd)
15 BUILD_DIR = $(KBUILD_OUTPUT)/tools/elftosb/bld/linux
18 ifeq ("${UNAMES}", "CYGWIN_NT-5.1")
20 SRC_DIR = $(shell pwd)
21 BUILD_DIR = $(KBUILD_OUTPUT)/tools/elftosb/bld/cygwin
27 #*******************************************************************************
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) $@;