File: Makefile

package info (click to toggle)
lphdisk 0.9.1-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 192 kB
  • ctags: 237
  • sloc: ansic: 1,789; makefile: 54
file content (40 lines) | stat: -rw-r--r-- 668 bytes parent folder | download | duplicates (3)
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
30
31
32
33
34
35
36
37
38
39
40
#
# Makefile for lphdisk - hibernation partition creation utility
#
#   lphdisk 0.9.1
#

INSTALL_PREFIX = /usr/local

CFLAGS = -g -Wall
LIBS =

LRMIDIR = lrmi-0.6m

all:       lphdisk

lphdisk:   lphdisk.o lrmi.o
	$(CC) $(CFLAGS) -o lphdisk lphdisk.o lrmi.o $(LIBS)

lphdisk.o: lphdisk.c lrmi.h vbe.h

lrmi.o:
	cd $(LRMIDIR) && $(MAKE) $@
	cp $(LRMIDIR)/lrmi.o .

%.h: $(LRMIDIR)/%.h
	cp $^ $@

install: all
	install -m 755 lphdisk $(INSTALL_PREFIX)/sbin
	install -m 644 lphdisk.8 $(INSTALL_PREFIX)/man/man8

clean:
	cd $(LRMIDIR) && $(MAKE) $@
	rm -f *.o lrmi.h vbe.h

distclean: clean
	cd $(LRMIDIR) && $(MAKE) $@
	rm -f lphdisk

.PHONY: all install clean distclean