forked from ondrejvelisek/pam_oauth2_device
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 675 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 675 Bytes
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
CXXFLAGS=-Wall -fPIC -std=c++11
LDLIBS=-lpam -lcurl -lldap -llber
objects = src/pam_oauth2_device.o \
src/include/config.o \
src/include/ldapquery.o \
src/include/nayuki/BitBuffer.o \
src/include/nayuki/QrCode.o \
src/include/nayuki/QrSegment.o
all: pam_oauth2_device.so
%.o: %.c %.h
$(CXX) $(CXXFLAGS) -c $< -o $@
pam_oauth2_device.so: $(objects)
$(CXX) -shared $^ $(LDLIBS) -o $@
clean:
rm -f $(objects)
distclean: clean
rm -f pam_oauth2_device.so
install: pam_oauth2_device.so
install -D -t $(DESTDIR)$(PREFIX)/lib/security pam_oauth2_device.so
install -m 600 -D config_template.json $(DESTDIR)$(PREFIX)/etc/pam_oauth2_device/config.json