A hex dump tool.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

79 lines
1.4 KiB

# Makefile for hex (c) Markus Hoffmann V.1.00
# This file is part of HEX, the hex dump utility
# ==================================================
# HEX is free software and comes with NO WARRANTY -
# read the file COPYING for details.
# Insert the defs for your machine
SHELL=/bin/sh
# Directories
prefix=/usr
exec_prefix=${prefix}
datarootdir = ${prefix}/share
BINDIR=${exec_prefix}/bin
DATADIR=${datarootdir}
MANDIR=${datarootdir}/man
LIBNO=1.00
RELEASE=1
# Register variables (-ffixed-reg) -Wall
REGS=-fno-omit-frame-pointer
# Optimization and debugging options
OPT=-O3
CC=gcc
CSRC= hex.c
HSRC=
MANSRC= hex.1
DOC= README.md LICENSE
DEBDOC= README.md
DIST= $(DOC) $(HSRC) $(CSRC) $(MANSRC) Makefile
BINDIST= $(DOC) hex $(MANSRC)
all: hex
hex: hex.c
$(CC) $(OPT) -o $@ $< -Wall
install : hex
install -s -m 755 hex $(BINDIR)/
install -m 644 hex.1 $(MANDIR)/man1/
uninstall :
rm -f $(BINDIR)/hex
rm -f $(MANDIR)/man1/hex.1
doc-pak: $(DEBDOC)
mkdir -p $@
cp $(DEBDOC) $@/
cp Debian/changelog.Debian $@/
gzip -9 $@/changelog.Debian
cp Debian/copyright $@/
deb : $(BINDIST) doc-pak
sudo checkinstall -D --pkgname hex --pkgversion $(LIBNO) \
--pkgrelease $(RELEASE) \
--maintainer "kollo@users.sourceforge.net" \
--requires libc6 --backup \
--pkggroup interpreters --provides hex \
--pkglicense GPL --strip=yes --stripso=yes --reset-uids
rm -f backup-*.tgz
strip: hex
strip $<
clean :
rm -f *.o a.out