SRCS = ./rlm_stg.cpp \
./stg_client.cpp
-STGLIBS = -lstg_common \
- -lstg_crypto
+STGLIBS = -lstgcommon \
+ -lstgcrypto
LIBS += $(LIB_THREAD)
CXXFLAGS += -Wall -fPIC -I./
LDFLAGS += -shared -L$(DIR_LIB) -Wl,-rpath,$(PREFIX)/usr/lib/stg
-vpath %.so $(DIR_LIB)
+vpath %.a $(DIR_LIB)
.PHONY: all clean distclean libs install uninstall install-bin uninstall-bin
all: libs $(PROG) ../../Makefile.conf
$(MAKE) -C $(DIR_LIBSRC)
$(PROG): $(OBJS) $(STGLIBS)
- $(CC) $^ $(LDFLAGS) -o $(PROG) $(LIBS)
+ $(CXX) $^ $(LDFLAGS) -o $(PROG) $(LIBS)
clean:
rm -f deps $(PROG) *.o tags *.*~ .OS
install: install-bin
install-bin:
- mkdir -m $(BIN_MODE) -p $(PREFIX)/usr/lib
install -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/$(PROG)
$(MAKE) -C $(DIR_LIBSRC) install
uninstall: uninstall-bin
uninstall-bin:
- rm -f $(PREFIX)/usr/sbin/$(PROG)
+ rm -f $(PREFIX)/usr/lib/$(PROG)
ifneq ($(MAKECMDGOALS),distclean)
ifneq ($(MAKECMDGOALS),clean)