-
Notifications
You must be signed in to change notification settings - Fork 42
/
Makefile.in
48 lines (35 loc) · 895 Bytes
/
Makefile.in
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
47
48
# Makefile for hexedit
PRODUCT = @PRODUCT@
VERSION = @VERSION@
SHELL = /bin/sh
CC = @CC@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
DEFS = @DEFS@
INSTALL = @INSTALL@
# Installation directories
prefix = @prefix@
datarootdir = @datarootdir@
exec_prefix = @exec_prefix@
mandir = @mandir@
bindir = @bindir@
INCL = @INCL@
SRCS = @SRCS@
OBJS = $(SRCS:.c=.o)
.SUFFIXES: .c .o
.c.o:
$(CC) $(DEFS) $(CFLAGS) $(CPPFLAGS) -c $<
all: $(PRODUCT)
$(PRODUCT): $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
clean:
rm -rf *~ *.o core *.cache config.status config.log $(PRODUCT) $(PRODUCT).1
distclean: clean
rm -f Makefile config.h Makefile-build
install: $(PRODUCT)
$(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
$(INSTALL) -m 755 $(PRODUCT) $(DESTDIR)$(bindir)
$(INSTALL) -d -m 755 $(DESTDIR)$(mandir)/man1
$(INSTALL) -m 644 $(PRODUCT).1 $(DESTDIR)$(mandir)/man1