-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 686 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 686 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
# Makefile for minised
# If your compiler does not support this flags, just remove them.
# They only ensure that no new warning regressions make it into the source.
CFLAGS += -O1 -Wall -Wwrite-strings
DESTDIR=
PREFIX=/usr
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man/man1
minised: sedcomp.o sedexec.o
$(CC) $(LDFLAGS) sedcomp.o sedexec.o -o minised
sedcomp.o: sedcomp.c sed.h
sedexec.o: sedexec.c sed.h
install:
install -d -m 755 $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)
install -m 755 minised $(DESTDIR)$(BINDIR)
install -m 644 minised.1 $(DESTDIR)$(MANDIR)
clean:
rm -f minised sedcomp.o sedexec.o
check: minised
cd tests; ./run ../minised
.PHONY: install clean check