-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
77 lines (58 loc) · 1.86 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 @CPPFLAGS@ -fPIC
CFLAGS = -Wno-unused-result @CFLAGS@ @CPPFLAGS@ @DEFS@ @DEBUG@ -DSQLITE_OMIT_LOAD_EXTENSION
LIBS = @LIBS@
LDFLAGS = @LDFLAGS@
#INSTALL = @INSTALL@
INSTALL = /usr/bin/install -c
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir = @bindir@
libdir = @libdir@
TARGET=crypt4gh-sqlite.fs
KEYS_OBJS = src/keys/base64.o src/keys/bcrypt_pbkdf.o src/keys/blowfish.o \
src/keys/explicit_bzero.o src/keys/freezero.o src/keys/kdf.o \
src/keys/key.o src/keys/readpassphrase.o src/keys/sha2.o \
src/keys/timingsafe_bcmp.o
OBJS = src/fs.o src/sqlite-3.45.2/sqlite3.o src/main.o src/crypt4gh.o $(KEYS_OBJS)
.PHONY: $(TARGET)
all: $(TARGET)
ifdef NO_DEBUG
CFLAGS+=-DNO_DEBUG
else
CFLAGS+=-g
endif
$(libdir) $(bindir):
mkdir -p $@
$(TARGET): $(OBJS)
@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)
distclean: clean
-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/keys/*.c src/sqlite-3.45.2/*.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@