Specify cpp version in Makefile
SHELL = /bin/sh
TOPDIR = $(realpath ..)
-VERSION = 20190708.00
+VERSION = 20190711.00
CPPFLAGS = -Iinclude -I/usr/include/json-c
-CXXFLAGS = -fPIC -Wall -g
-CFLAGS = $(CXXFLAGS) -Wstrict-prototypes
+FLAGS = -fPIC -Wall -g
+CFLAGS = $(FLAGS) -Wstrict-prototypes
+CXXFLAGS = $(FLAGS) -std=c++11
LDFLAGS = -shared -Wl,-soname,$(SONAME)
LDLIBS = -lcurl -ljson-c
@@ -59,10 +60,10 @@ $(PAM_ADMIN) : pam/pam_oslogin_admin.o utils.o
# Utilities.
google_authorized_keys : authorized_keys/authorized_keys.o utils.o
- $(CXX) $(CXXFLAGS) $(CPPFLAGS) $^ -o $@ $(LDLIBS)
+ $(CXX) $(CXXFLAGS) $(CPPFLAGS) -lboost_regex $^ -o $@ $(LDLIBS)
google_oslogin_nss_cache: cache_refresh/cache_refresh.o utils.o
- $(CXX) $(CXXFLAGS) $(CPPFLAGS) $^ -o $@ $(LDLIBS)
+ $(CXX) $(CXXFLAGS) $(CPPFLAGS) -lboost_regex $^ -o $@ $(LDLIBS)
install: all
install -d $(DESTDIR)$(LIBDIR)
