diff --git a/src/Makefile.in b/src/Makefile.in index 85c1bb2..9154890 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -225,7 +225,7 @@ libmerc_driver: # intercept.so: intercept.cc libmerc.a - g++ -std=c++17 -Wall -Wno-narrowing intercept.cc libmerc/pkt_proc.cc -D_GNU_SOURCE -I/usr/include/nspr/ -fPIC -shared -lssl -lnspr4 -lgnutls libmerc/libmerc.a -o intercept.so + $(CXX) -std=c++17 -Wall -Wno-narrowing intercept.cc libmerc/pkt_proc.cc -D_GNU_SOURCE -I/usr/include/nspr/ -fPIC -shared -lssl -lnspr4 -lgnutls libmerc/libmerc.a -o intercept.so # special targets # diff --git a/src/libmerc/lctrie/Makefile b/src/libmerc/lctrie/Makefile index bbc45e7..5bc2b5a 100644 --- a/src/libmerc/lctrie/Makefile +++ b/src/libmerc/lctrie/Makefile @@ -12,7 +12,6 @@ clean: rm -f lctrie_test rm -f liblctrie.a -CC = g++ CFLAGS = -g -ggdb -std=c++11 -Wall -O3 -fPIC # -Wno-sign-compare LDFLAGS = -g -ggdb -O3 LDLIBS = @@ -23,7 +22,7 @@ DEPDIR := .d $(shell mkdir -p $(DEPDIR) >/dev/null) DEPFLAGS = -MT $@ -MMD -MP -MF $(DEPDIR)/$*.Td -COMPILE.c = $(CC) $(DEPFLAGS) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c +COMPILE.c = $(CXX) $(DEPFLAGS) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c COMPILE.cc = $(CXX) $(DEPFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c POSTCOMPILE = mv -f $(DEPDIR)/$*.Td $(DEPDIR)/$*.d