File: Makefile

package info (click to toggle)
sysvbanner 1.0-7
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 36 kB
  • ctags: 9
  • sloc: ansic: 115; makefile: 43
file content (16 lines) | stat: -rw-r--r-- 252 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CFLAGS=-Wall -O2
DESTDIR=

BIN=banner
SRC=$(BIN).c
MAN=$(BIN).1

$(BIN): $(SRC)
	$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)

install: $(BIN) $(MAN)
	install -m 755 $(BIN) $(DESTDIR)/usr/bin
	install -m 644 $(MAN) $(DESTDIR)/usr/man/man1

clean:
	$(RM) $(BIN)