-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile.in
52 lines (37 loc) · 1.04 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
# @configure_input@
CFLAGS:= -Werror -Wall -std=c99 -fPIC
# CFLAGS+= $(shell libassuan-config --cflags)
# LDFLAGS+= $(shell libassuan-config --libs)
# CFLAGS+= $(shell libgcrypt-config --cflags)
# LDFLAGS+= $(shell libgcrypt-config --libs)
CFLAGS+= @extra_CFLAGS@
LDFLAGS+= @extra_LDFLAGS@
TARGET:=scd-pkcs11-$(shell uname -s)-$(shell uname -m).so
TARGET_SHORTNAME:=scd-pkcs11.so
SOURCES:=pkcs11-impl.c sec.c scd.c
OBJECTS:=$(SOURCES:.c=.o)
prefix:=@prefix@
exec_prefix:=@exec_prefix@
libdir:=@libdir@
%.o: %.c
$(CC) -c $< $(CPPFLAGS) $(CFLAGS)
all: $(TARGET)
$(TARGET): $(OBJECTS)
$(CC) -shared $(OBJECTS) -o $(TARGET) $(LDFLAGS)
debug:
CPPFLAGS=-DSEC_DEBUG $(MAKE)
debug2:
CPPFLAGS="-DSEC_DEBUG -DSEC_LOG_STDERR" $(MAKE)
clean:
rm -f $(TARGET) $(OBJECTS)
distclean: clean
rm -f Makefile config.log config.status
install: $(TARGET)
mkdir -pv "$(libdir)"
cp "$(TARGET)" "$(libdir)/$(TARGET_SHORTNAME)"
uninstall:
rm -f "$(libdir)/$(TARGET_SHORTNAME)"
# deps
sec.c: sec.h common.h
pkcs11-impl.c: sec.h scd.h common.h
scd.c: scd.h common.h