-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile.in
70 lines (59 loc) · 1.71 KB
/
Makefile.in
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
70
exec_prefix=@exec_prefix@
bindir=@bindir@
mandir=@mandir@
TARGET = copyfs-daemon
SRC = cache.c \
create.c \
ea.c \
helper.c \
interface.c \
lookup.c \
main.c \
parse.c \
write.c
HEADERS = cache.h \
create.h \
ea.h \
helper.h \
parse.h \
rcs.h \
structs.h \
write.h
SCRIPTS = copyfs-mount copyfs-fversion
EXTRA = $(SCRIPTS) Makefile.in configure.in configure README
MANPAGES= copyfs.1 copyfs-daemon.1 copyfs-mount.1 copyfs-fversion.1
OBJ = $(SRC:.c=.o)
CC = gcc
CFLAGS = -Wall -ansi -W -std=c99 -g -ggdb -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
LIBS = -lfuse
all: $(TARGET)
install: $(TARGET) $(SCRIPTS)
install -d $(bindir)
install -m 755 $(TARGET) $(bindir)
install -m 755 $(SCRIPTS) $(bindir)
install -d $(mandir)/man1
install -m 644 $(MANPAGES) $(mandir)/man1
clean:
rm -f *~ $(OBJ) \#*\#
distclean: clean
rm -f $(TARGET)
dist:
mkdir /tmp/copyfs-dist
mkdir /tmp/copyfs-dist/copyfs-1.0
cp $(SRC) $(HEADERS) $(EXTRA) /tmp/copyfs-dist/copyfs-1.0
cd /tmp/copyfs-dist && tar jcvf copyfs-1.0.tar.bz2 copyfs-1.0
cp /tmp/copyfs-dist/copyfs-1.0.tar.bz2 .
rm -rf /tmp/copyfs-dist
$(TARGET): $(OBJ)
gcc -o $(TARGET) $(OBJ) $(LIBS)
# Dependencies (use gcc -MM -D_FILE_OFFSET_BITS=64 *.c to regenerate)
cache.o: cache.c helper.h structs.h cache.h rcs.h
create.o: create.c helper.h structs.h write.h rcs.h create.h cache.h
ea.o: ea.c helper.h structs.h write.h rcs.h ea.h
helper.o: helper.c helper.h rcs.h structs.h
interface.o: interface.c helper.h cache.h structs.h rcs.h create.h \
write.h ea.h
lookup.o: lookup.c helper.h structs.h parse.h cache.h rcs.h
main.o: main.c helper.h structs.h cache.h create.h
parse.o: parse.c helper.h structs.h
write.o: write.c helper.h structs.h write.h