diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-06-23 22:33:37 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-06-24 14:44:05 +0200 |
commit | 3818cb845053d4fc3bd84a2ddf35286a4fa39f86 (patch) | |
tree | d1f63ae45d5be7aa11806bf0198780fe9ec9c6ad | |
parent | e2e1b8debb889ddeaae669e5fcfedadbc2d383e4 (diff) | |
download | mxs-utils-3818cb845053d4fc3bd84a2ddf35286a4fa39f86.tar.gz mxs-utils-3818cb845053d4fc3bd84a2ddf35286a4fa39f86.tar.xz |
remove old build-system
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | makefile | 32 | ||||
-rw-r--r-- | makefile.rules | 185 |
2 files changed, 0 insertions, 217 deletions
diff --git a/makefile b/makefile deleted file mode 100644 index 8e12bd4..0000000 --- a/makefile +++ /dev/null @@ -1,32 +0,0 @@ -#******************************************************************************* -# makefile -# Description: -# gnu make makefile for elftosb executable - -#******************************************************************************* -# Environment - -# UNAMES is going to be set to either "Linux" or "CYGWIN_NT-5.1" -UNAMES = $(shell uname -s) - -ifeq ("${UNAMES}", "Linux") - -SRC_DIR = $(shell pwd) -BUILD_DIR = bld/linux - -else -ifeq ("${UNAMES}", "CYGWIN_NT-5.1") - -SRC_DIR = $(shell pwd) -BUILD_DIR = bld/cygwin - -endif -endif - - -#******************************************************************************* -# Targets - -all clean elftosb sbtool keygen install: - @mkdir -p ${BUILD_DIR}; - make -C ${BUILD_DIR} -f ${SRC_DIR}/makefile.rules SRC_DIR=${SRC_DIR} $@; diff --git a/makefile.rules b/makefile.rules deleted file mode 100644 index 1d24eb7..0000000 --- a/makefile.rules +++ /dev/null @@ -1,185 +0,0 @@ -#******************************************************************************* -# makefile.rules -# Description: -# gnu make makefile rules for elftosb executable. make needs to be called -# with the following command: -# -# make -C ${BUILD_DIR} -f ${SRC_DIR}/makefile.rules SRC_DIR=${SRC_DIR} $@; -# -# SRC_DIR needs to be passed in. It is assumed that make is running in -# the build directory. - -#******************************************************************************* -# Environment - -# UNAMES is going to be set to either "Linux" or "CYGWIN_NT-5.1" -UNAMES = $(shell uname -s) - -#******************************************************************************* -# Directories - -#******************************************************************************* -# Paths - -# search path for source files. make finds them automatically. -VPATH = \ - ${SRC_DIR}/common \ - ${SRC_DIR}/elftosb2 \ - ${SRC_DIR}/sbtool \ - ${SRC_DIR}/keygen - -# include directories -INC_PATH = \ - -I${SRC_DIR}/elftosb2 \ - -I${SRC_DIR}/keygen \ - -I${SRC_DIR}/sbtool \ - -I${SRC_DIR}/common - -#******************************************************************************* -# Build flags -# gcc Compiler flags -# -g : Produce debugging information. - -CFLAGS = -g $(INC_PATH) -D${UNAMES} - -#******************************************************************************* -# File lists - -OBJ_FILES_COMMON = \ - AESKey.o \ - Blob.o \ - crc.o \ - DataSource.o \ - DataTarget.o \ - ELFSourceFile.o \ - EncoreBootImage.o \ - EvalContext.o \ - GHSSecInfo.o \ - GlobMatcher.o \ - HexValues.o \ - Logging.o \ - Operation.o \ - OptionDictionary.o \ - options.o \ - OutputSection.o \ - Random.o \ - RijndaelCBCMAC.o \ - rijndael.o \ - SHA1.o \ - SourceFile.o \ - SRecordSourceFile.o \ - stdafx.o \ - StELFFile.o \ - StExecutableImage.o \ - StSRecordFile.o \ - Value.o \ - Version.o \ - format_string.o \ - ExcludesListMatcher.o \ - SearchPath.o \ - DataSourceImager.o \ - IVTDataSource.o - -OBJ_FILES_ELFTOSB2 = \ - ${OBJ_FILES_COMMON} \ - BootImageGenerator.o \ - ConversionController.o \ - ElftosbAST.o \ - elftosb.o \ - elftosb_lexer.o \ - ElftosbLexer.o \ - elftosb_parser.tab.o \ - EncoreBootImageGenerator.o - -OBJ_FILES_SBTOOL = \ - ${OBJ_FILES_COMMON} \ - EncoreBootImageReader.o \ - sbtool.o - -OBJ_FILES_KEYGEN = \ - ${OBJ_FILES_COMMON} \ - keygen.o - - -PREFIX := /usr/local - -LIBS = -lstdc++ - - -ifeq ("${UNAMES}", "Linux") -EXEC_FILE_ELFTOSB2 = elftosb -EXEC_FILE_SBTOOL = sbtool -EXEC_FILE_KEYGEN = keygen -else -ifeq ("${UNAMES}", "CYGWIN_NT-5.1") -EXEC_FILE_ELFTOSB2 = elftosb.exe -EXEC_FILE_SBTOOL = sbtool.exe -EXEC_FILE_KEYGEN = keygen.exe -endif # ifeq ("${UNAMES}", "CYGWIN_NT-5.1") -endif # ifeq ("${UNAMES}", "Linux") - - -#******************************************************************************* -# Targets - -.PHONY := all install clean - -all: elftosb sbtool keygen - -# Uncomment the next line to print out the environment variables. -all: exec_always - -exec_always: - @echo "SRC_DIR = ${SRC_DIR}" - @echo "OBJ_FILES = ${OBJ_FILES_ELFTOSB2}" - @echo "LIBS = ${LIBS}" - @echo "EXEC_FILE = ${EXEC_FILE}" - @echo "BUILD_DIR = ${BUILD_DIR}" - -clean: - rm -f ${OBJ_FILES_ELFTOSB2} ${OBJ_FILES_SBTOOL} ${OBJ_FILES_KEYGEN} \ - ${EXEC_FILE_ELFTOSB2} ${EXEC_FILE_SBTOOL} ${EXEC_FILE_KEYGEN} - -elftosb: ${OBJ_FILES_ELFTOSB2} - gcc ${OBJ_FILES_ELFTOSB2} ${LIBS} -o ${EXEC_FILE_ELFTOSB2} - -sbtool: ${OBJ_FILES_SBTOOL} - gcc ${OBJ_FILES_SBTOOL} ${LIBS} -o ${EXEC_FILE_SBTOOL} - -keygen: ${OBJ_FILES_KEYGEN} - gcc ${OBJ_FILES_KEYGEN} ${LIBS} -o ${EXEC_FILE_KEYGEN} - - -#ifeq ("${UNAMES}", "Linux") -#ifeq ("${UNAMES}", "Linux") -# Use default rules for creating all the .o files from the .c files. Only -# for linux -.SUFFIXES : .c .cpp - -.c.o : - gcc ${CFLAGS} -c $< - -.cpp.o : - gcc ${CFLAGS} -c $< - -#endif - -#******************************************************************************* -# Automatic dependency generation - -%.d: %.c - @set -e; \ - $(CC) -MM $(CFLAGS) $< | \ - sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \ - [ -s $@ ] || rm -f $@ - -%.d: %.cpp - @set -e; \ - $(CC) -MM $(CFLAGS) $< | \ - sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \ - [ -s $@ ] || rm -f $@ - -#******************************************************************************* - -install: all - install -t $(DESTDIR)/$(PREFIX)/bin ${EXEC_FILE_ELFTOSB2} ${EXEC_FILE_SBTOOL} ${EXEC_FILE_KEYGEN} |