-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
77 lines (57 loc) · 1.87 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
71
72
73
74
75
76
77
CC = @CC@
CPPFLAGS= -Isrc -Ikeys/include @CPPFLAGS@ -fPIC
CFLAGS = -Wno-unused-result @CFLAGS@ @CPPFLAGS@ @DEFS@ @DEBUG@
LIBS = @LIBS@
LDFLAGS = @LDFLAGS@ -Lkeys -lc4gh-keys -Lkeys/openssh -lopenssh -Lkeys/openbsd-compat -lopenbsd-compat
#INSTALL = @INSTALL@
INSTALL = /usr/bin/install -c
EXTRA_LIBS = keys/libc4gh-keys.a keys/openssh/libopenssh.a keys/openbsd-compat/libopenbsd-compat.a
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir = @bindir@
libdir = @libdir@
TARGET=ega-qv
OBJS = src/sshfs/sshfs.o src/sshfs/cache.o \
src/readpassphrase.o src/header.o \
src/c4ghfs.o src/main.o
.PHONY: $(TARGET)
all: $(TARGET)
$(libdir) $(bindir):
mkdir -p $@
$(EXTRA_LIBS):
@echo "Creating dependency $(@:keys/%=%)"
@make -s -C keys $(@:keys/%=%)
$(TARGET): $(OBJS) $(EXTRA_LIBS)
@echo "Creating target $@"
@$(CC) -o $@ $(OBJS) $(LDFLAGS) $(LIBS)
.c.o:
@echo "Compiling $<"
@$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
clean:
-rm -f $(OBJS) $(TARGET)
-@rm -f *~
install: $(TARGET)
$(INSTALL) -m 0755 $(TARGET) $(bindir)/$(TARGET)
veryclean: clean
-make -C keys veryclean
distclean: veryclean
-rm -f Makefile src/config.h* config.status configure config.log
-rm -rf autom4te.cache aclocal.m4 src/.depend.old
###################################
## Dependencies
###################################
depend: depend-rebuild
rm -f src/.depend.bak
depend-rebuild:
mv src/.depend src/.depend.old
rm -f src/config.h src/.depend
touch src/config.h src/.depend
makedepend -w1000 -I./src -DHAVE_CONFIG_H -Ysrc -f src/.depend src/*.c src/sshfs/*.c 2>/dev/null
(echo '# Automatically generated by makedepend.'; \
echo '# Run "make depend" to rebuild.'; sort src/.depend ) >src/.depend.tmp
mv src/.depend.tmp src/.depend
rm -f src/.depend.bak
mv src/.depend.old src/.depend.bak
depend-check: depend-rebuild
cmp src/.depend src/.depend.bak || (echo src/.depend stale && exit 1)
# @DEPEND@