-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.in
More file actions
41 lines (30 loc) · 817 Bytes
/
Makefile.in
File metadata and controls
41 lines (30 loc) · 817 Bytes
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
headers=$(wildcard *.h)
sources=$(wildcard *.c)
objects=$(patsubst %.c,%.o,$(sources))
CC=@CC@
CFLAGS=@CFLAGS@ -Wall
LIBS=@LIBS@
LDFLAGS=@LDFLAGS@
OMNITTY_VERSION=@PACKAGE_VERSION@
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
mandir=@mandir@
CFLAGS+=-DOMNITTY_VERSION=\"$(OMNITTY_VERSION)\"
omnitty: $(objects)
$(CC) $(CFLAGS) -o omnitty $(objects) $(LDFLAGS) $(LIBS)
-include .depends
.depends: $(sources) $(headers)
$(CC) $(CFLAGS) -MM $(sources) >.depends
clean:
rm -f *.o .depends omnitty
distclean: clean
rm -rf autom4te.cache config.status config.log Makefile
pristine: distclean
rm -f configure
install: omnitty
mkdir -p $(DESTDIR)$(bindir)
cp omnitty $(DESTDIR)$(bindir)
mkdir -p $(DESTDIR)$(mandir)/man1
cp omnitty.1 $(DESTDIR)$(mandir)/man1
.PHONY: distclean clean pristine