Debian Codegraph @

Makefile

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #
2 # Makefile for lphdisk - hibernation partition creation utility
3 #
4 # lphdisk 0.9.1
5 #
6
7 INSTALL_PREFIX = /usr/local
8
9 CFLAGS = -g -Wall
10 LIBS =
11
12 LRMIDIR = lrmi-0.6m
13
14 all: lphdisk
15
16 lphdisk: lphdisk.o lrmi.o
17 $(CC) $(CFLAGS) -o lphdisk lphdisk.o lrmi.o $(LIBS)
18
19 lphdisk.o: lphdisk.c lrmi.h vbe.h
20
21 lrmi.o:
22 cd $(LRMIDIR) && $(MAKE) $@
23 cp $(LRMIDIR)/lrmi.o .
24
25 %.h: $(LRMIDIR)/%.h
26 cp $^ $@
27
28 install: all
29 install -m 755 lphdisk $(INSTALL_PREFIX)/sbin
30 install -m 644 lphdisk.8 $(INSTALL_PREFIX)/man/man8
31
32 clean:
33 cd $(LRMIDIR) && $(MAKE) $@
34 rm -f *.o lrmi.h vbe.h
35
36 distclean: clean
37 cd $(LRMIDIR) && $(MAKE) $@
38 rm -f lphdisk
39
40 .PHONY: all install clean distclean