summaryrefslogtreecommitdiff
path: root/extras/volume_id/libvolume_id/Makefile
blob: a5f9c1a825bf5d421190250d73686ed9838025f6 (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Makefile for udev extra invoked from the udev main Makefile
#
# Copyright (C) 2004-2005 Kay Sievers <kay.sievers@vrfy.org>
#
# Released under the GNU General Public License, version 2.
#

LIBVOLUME_ID = libvolume_id.a

OBJS=				\
	ext.o			\
	fat.o			\
	hfs.o			\
	highpoint.o		\
	isw_raid.o		\
	lsi_raid.o		\
	via_raid.o		\
	silicon_raid.o		\
	nvidia_raid.o		\
	promise_raid.o		\
	iso9660.o		\
	jfs.o			\
	linux_raid.o		\
	linux_swap.o		\
	lvm.o			\
	ntfs.o			\
	reiserfs.o		\
	udf.o			\
	ufs.o			\
	xfs.o			\
	cramfs.o		\
	hpfs.o			\
	romfs.o			\
	sysv.o			\
	minix.o			\
	luks.o			\
	ocfs.o			\
	vxfs.o			\
	squashfs.o		\
	volume_id.o		\
	util.o

HEADERS=			\
	volume_id.h		\
	util.h

AR = $(CROSS)ar
RANLIB = $(CROSS)ranlib

all: $(LIBVOLUME_ID)
.PHONY: all
.DEFAULT: all

%.o: %.c
	$(E) "  CC      " $@
	$(Q) $(CC) -c $(CFLAGS) $< -o $@

$(LIBVOLUME_ID): $(HEADERS) $(OBJS)
	$(Q) rm -f $@
	$(E) "  AR      " $@
	$(Q) $(AR) cq $@ $(OBJS)
	$(E) "  RANLIB  " $@
	$(Q) $(RANLIB) $@

clean:
	$(E) "  CLEAN   "
	$(Q) rm -f $(LIBVOLUME_ID) $(OBJS)
.PHONY: clean