File: Makefile

package info (click to toggle)
ppmtoagafb 0.8
  • links: PTS
  • area: main
  • in suites: slink
  • size: 84 kB
  • ctags: 78
  • sloc: ansic: 908; python: 122; makefile: 55
file content (27 lines) | stat: -rw-r--r-- 544 bytes parent folder | download
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
CC =		gcc
LOBS = 		-lnetpbm

TREE = $(DESTDIR)/usr
# FSSTND; or /usr/local

all: ppmtoagafb

ppmtoagafb: ppmtoagafb.o encodeham8.o
	$(CC) -o $@ $^ $(LOBS)

root: ppmtoagafb
	chown root.root ppmtoagafb
	chmod u+s ppmtoagafb

install: ppmtoagafb
	install -s -m4755 -o root -g root ppmtoagafb $(TREE)/bin/ppmtoagafb
	install -m755 -o root -g root agaview.py $(TREE)/bin/agaview
	install -o root -g root ppmtoagafb.1 $(TREE)/man/man1/ppmtoagafb.1

clean:
	rm -f *.o ppmtoagafb *~

distclean:
	rm -f *.o *~

.PHONY: root install clean distclean all