File: Makefile

package info (click to toggle)
unionfs 1.4%2Bdebian-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 924 kB
  • ctags: 929
  • sloc: ansic: 9,905; sh: 2,787; makefile: 253; perl: 200
file content (35 lines) | stat: -rw-r--r-- 623 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
28
29
30
31
32
33
34
35
# Makefile for the Linux 2.6 unionfs

BINS	:=	unionctl uniondbg unionimap
all:	${BINS}

unionctl: unionctl.c usercommon.c
	${CC} -o $@ $^ ${UCFLAGS}

uniondbg: uniondbg.c
	${CC} -o $@ $^ ${UCFLAGS}

unionimap: unionimap.c usercommon.c
	${CC} -o $@ $^ -luuid ${UCFLAGS}

TAGS: $(wildcard *.[ch])
	etags -t $^

tags: $(wildcard *.[ch])
	ctags $^

clean:
	rm -f ${BINS} TAGS tags

PHONY. utils: ${BINS}

install: utils
	mkdir -p ${PREFIX}/sbin
	cp unionctl ${PREFIX}/sbin
	cp uniondbg ${PREFIX}/sbin
	cp unionimap ${PREFIX}/sbin

uninstall:
	rm ${PREFIX}/sbin/unionctl
	rm ${PREFIX}/sbin/uniondbg
	rm ${PREFIX}/sbin/unionimap