1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
# Makefile for hexedit
PRODUCT = hexedit
VERSION = 1.2.2
SHELL = /bin/sh
CC = gcc
CFLAGS = -g -O2
LDFLAGS =
LIBS = -lcurses
DEFS = -DHAVE_CONFIG_H
INSTALL = /usr/bin/install -c
# Installation directories
prefix = /home/rcw/src/hexedit-1.2.2/debian/tmp/usr
exec_prefix = ${prefix}
mandir = /home/rcw/src/hexedit-1.2.2/debian/tmp/usr/share/man
bindir = ${exec_prefix}/bin
INCL = hexedit.h
SRCS = hexedit.c display.c mark.c page.c file.c interact.c misc.c search.c
OBJS = $(SRCS:.c=.o)
.SUFFIXES: .c .o
.c.o:
$(CC) $(DEFS) $(CFLAGS) -c $<
all: $(PRODUCT)
$(PRODUCT): $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
clean:
rm -rf *~ *.o core *.cache config.status config.log $(PRODUCT)
distclean: clean
rm -f Makefile config.h
install: $(PRODUCT)
$(INSTALL) -d -m 755 $(bindir)
$(INSTALL) -s -m 755 $(PRODUCT) $(bindir)
$(INSTALL) -d -m 755 $(mandir)/man1
$(INSTALL) -m 644 $(PRODUCT).1 $(mandir)/man1
|