File: Makefile

package info (click to toggle)
btoa 5.2.1-5
  • links: PTS
  • area: non-free
  • in suites: potato
  • size: 80 kB
  • ctags: 57
  • sloc: ansic: 909; makefile: 65
file content (25 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (2)
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
OBJS	= btoa.o atob.o repair.o
CFLAGS	= -Wall -O2 -Wshadow -Wwrite-strings

DESTDIR  = /usr/

all:	btoa

btoa:	$(OBJS)

btoa.o: btoa.c btoa.h chksum.h
 
atob.o: atob.c btoa.h chksum.h

repair.o: repair.c btoa.h

install: btoa btoa.1
	-@mkdir -p $(DESTDIR)/bin
	install -p -c -s -m 755 btoa $(DESTDIR)/bin/btoa
	rm -f $(DESTDIR)/bin/atob
	ln $(DESTDIR)/bin/btoa $(DESTDIR)/bin/atob
	-@mkdir -p $(DESTDIR)/man/man1
	install -p -c -m 644 btoa.1 $(DESTDIR)/man/man1/btoa.1
	ln -s btoa.1 $(DESTDIR)/man/man1/atob.1
clean:
	rm -f btoa $(OBJS)