xref: /netbsd-src/external/bsd/elftosb/dist/makefile (revision 993229b6fea628ff8b1fa09146c80b0cfb2768eb)
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"
10UNAMES = $(shell uname -s)
11
12ifeq ("${UNAMES}", "Linux")
13
14SRC_DIR = $(shell pwd)
15BUILD_DIR = bld/linux
16
17else
18ifeq ("${UNAMES}", "CYGWIN_NT-5.1")
19
20SRC_DIR = $(shell pwd)
21BUILD_DIR = bld/cygwin
22
23endif
24endif
25
26
27#*******************************************************************************
28#                                 Targets
29
30all clean elftosb sbtool keygen:
31	@mkdir -p ${BUILD_DIR};
32	make -C ${BUILD_DIR} -f ${SRC_DIR}/makefile.rules SRC_DIR=${SRC_DIR} $@;
33