File: Makefile

package info (click to toggle)
nvram 0.1-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 56 kB
  • ctags: 70
  • sloc: ansic: 598; makefile: 50; sh: 33
file content (24 lines) | stat: -rw-r--r-- 459 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

CC = gcc
CFLAGS = -g -O2 -fomit-frame-pointer -Wall
LDFLAGS = -g

PREFIX = /usr
SBINDIR = $(PREFIX)/sbin
MANDIR = $(PREFIX)/man

all: nvram

nvram: nvram.o
	$(CC) $(LDFLAGS) -o $@ $^

clean:
	rm -f nvram *.o #*# core

install: nvram
	install -d -o root -g root -m 755 $(SBINDIR)
	install -d -o root -g root -m 755 $(MANDIR)/man8
	install -o root -g root -m 755 nvram $(SBINDIR)
	strip $(SBINDIR)/nvram
	install -o root -g root -m 644 nvram.8 $(MANDIR)/man8