SRCS = ./main.cpp \
./settings_impl.cpp
-STGLIBS = -lstglogger \
- -lstgcommon \
- -ldotconfpp \
- -lstgcrypto
+STGLIBS = logger \
+ common \
+ dotconfpp \
+ crypto \
+ conffiles
-LIBS += $(LIB_THREAD)
+STGLIBS_INCS = $(addprefix -I ../../stglibs/,$(addsuffix .lib/include,$(STGLIBS)))
+STGLIBS_LIBS = $(addprefix -L ../../stglibs/,$(addsuffix .lib,$(STGLIBS)))
+
+LIBS += $(LIB_THREAD) $(addprefix -lstg,$(STGLIBS))
ifeq ($(OS),linux)
LIBS += -ldl
LIBS += -lc
endif
-SEARCH_DIRS = -I $(DIR_INCLUDE)
+SEARCH_DIRS = -I ../../include
OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
-CXXFLAGS += -Wall
-LDFLAGS += -Wl,-E -L$(DIR_LIB) -Wl,-rpath,$(DIR_LIB)
-
-vpath %.a $(DIR_LIB)
+CXXFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
+CFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
+LDFLAGS += -Wl,-E $(STGLIBS_LIBS)
.PHONY: all clean distclean libs plugins install uninstall
all: libs plugins $(PROG) ../../Makefile.conf
plugins: libs
$(MAKE) -C $(DIR_PLUGINS)
-$(PROG): $(OBJS) $(STGLIBS)
+$(PROG): $(OBJS)
$(CXX) $^ $(LDFLAGS) $(LIBS) -o $(PROG)
clean:
endif
deps: $(SRCS) ../../Makefile.conf
- $(MAKE) -C $(DIR_LIBSRC) includes
+ $(MAKE) -C $(DIR_LIBSRC)
@>deps ;\
for file in $(SRCS); do\
- echo "`$(CC) $(CXXFLAGS) $(SEARCH_DIRS) -MM $$file` Makefile" >> deps ;\
- echo -e '\t$$(CC) -c $$< $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\
+ echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile" >> deps ;\
+ echo -e '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\
done
SRCS = ./rlm_stg.cpp \
./stg_client.cpp
-STGLIBS = -lstgcommon \
- -lstgcrypto
+STGLIBS = common \
+ crypto
-LIBS += $(LIB_THREAD)
+STGLIBS_INCS = $(addprefix -I ../../stglibs/,$(addsuffix .lib/include,$(STGLIBS)))
+STGLIBS_LIBS = $(addprefix -L ../../stglibs/,$(addsuffix .lib,$(STGLIBS)))
+
+LIBS += $(LIB_THREAD) $(addprefix -lstg,$(STGLIBS))
ifeq ($(OS),linux)
LIBS += -ldl
-lc
endif
-SEARCH_DIRS = -I $(DIR_INCLUDE)
+SEARCH_DIRS = -I ../../include
OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
-CXXFLAGS += -Wall -fPIC -I./
-LDFLAGS += -shared -L$(DIR_LIB) -Wl,-rpath,$(PREFIX)/usr/lib/stg
-
-vpath %.a $(DIR_LIB)
+CXXFLAGS += -fPIC $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
+CFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
+LDFLAGS += -shared -Wl,-rpath,$(PREFIX)/usr/lib/stg -Wl,-E $(STGLIBS_LIBS)
.PHONY: all clean distclean libs install uninstall install-bin uninstall-bin
all: libs $(PROG) ../../Makefile.conf
libs:
$(MAKE) -C $(DIR_LIBSRC)
-$(PROG): $(OBJS) $(STGLIBS)
+$(PROG): $(OBJS)
$(CXX) $^ $(LDFLAGS) -o $(PROG) $(LIBS)
clean:
endif
deps: $(SRCS) ../../Makefile.conf
- $(MAKE) -C $(DIR_LIBSRC) includes
+ $(MAKE) -C $(DIR_LIBSRC)
@>deps ;\
for file in $(SRCS); do\
- echo "`$(CC) $(CXXFLAGS) $(SEARCH_DIRS) -MM $$file` Makefile" >> deps ;\
- echo -e '\t$$(CC) -c $$< $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\
+ echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile" >> deps ;\
+ echo -e '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\
done
./listener.cpp \
./pidfile.cpp
-STGLIBS = -lstglogger \
- -lstgcommon \
- -lstgcrypto \
- -lstgscriptexecuter \
- -lstgconffiles
+STGLIBS = logger \
+ locker \
+ common \
+ crypto \
+ scriptexecuter \
+ conffiles
-LIBS += $(LIB_THREAD)
+STGLIBS_INCS = $(addprefix -I ../../stglibs/,$(addsuffix .lib/include,$(STGLIBS)))
+STGLIBS_LIBS = $(addprefix -L ../../stglibs/,$(addsuffix .lib,$(STGLIBS)))
-SEARCH_DIRS = -I $(DIR_INCLUDE)
+LIBS += $(LIB_THREAD) $(addprefix -lstg,$(STGLIBS))
-OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
+SEARCH_DIRS = -I ../../include
-CXXFLAGS += -Wall
-LDFLAGS += -Wl,-E -L$(DIR_LIB) -Wl,-rpath,$(PREFIX)/usr/lib/stg -Wl,-rpath-link,$(DIR_LIB)
+OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
-vpath %.a $(DIR_LIB)
+CXXFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
+CFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
+LDFLAGS += -Wl,-E $(STGLIBS_LIBS)
.PHONY: all clean distclean libs install uninstall
all: libs $(PROG) ../../Makefile.conf
libs:
$(MAKE) -C $(DIR_LIBSRC)
-$(PROG): $(OBJS) $(STGLIBS)
+$(PROG): $(OBJS)
$(CXX) $^ $(LDFLAGS) $(LIBS) -o $(PROG)
clean:
endif
deps: $(SRCS) ../../Makefile.conf
- $(MAKE) -C $(DIR_LIBSRC) includes
+ $(MAKE) -C $(DIR_LIBSRC)
@>deps ;\
for file in $(SRCS); do\
- echo "`$(CC) $(CXXFLAGS) $(SEARCH_DIRS) -MM $$file` Makefile" >> deps ;\
- echo -e '\t$$(CC) -c $$< $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\
+ echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile" >> deps ;\
+ echo -e '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\
done
./settings_impl.cpp \
./web.cpp
-STGLIBS = -lstgconffiles \
- -lstgia \
- -lstgcrypto \
- -lstgcommon
+STGLIBS = conffiles \
+ ia \
+ crypto \
+ common
-LIBS += $(LIB_THREAD)
+STGLIBS_INCS = $(addprefix -I ../../stglibs/,$(addsuffix .lib/include,$(STGLIBS)))
+STGLIBS_LIBS = $(addprefix -L ../../stglibs/,$(addsuffix .lib,$(STGLIBS)))
+
+LIBS += $(LIB_THREAD) $(addprefix -lstg,$(STGLIBS))
ifeq ($(OS),linux)
else
-lc
endif
-SEARCH_DIRS = -I $(DIR_INCLUDE)
+SEARCH_DIRS = -I ../../include
OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
-CXXFLAGS += -Wall
-LDFLAGS += -Wl,-E -L$(DIR_LIB) -Wl,-rpath,$(PREFIX)/usr/lib/stg -Wl,-rpath-link,$(DIR_LIB)
-
-vpath %.a $(DIR_LIB)
+CXXFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
+CFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
+LDFLAGS += -Wl,-E $(STGLIBS_LIBS)
.PHONY: all clean distclean libs install uninstall install-bin install-data uninstall-bin uninstall-data
all: libs $(PROG) ../../Makefile.conf
libs:
$(MAKE) -C $(DIR_LIBSRC)
-$(PROG): $(OBJS) $(STGLIBS)
+$(PROG): $(OBJS)
$(CXX) $^ $(LDFLAGS) -o $(PROG) $(LIBS)
clean:
endif
deps: $(SRCS) ../../Makefile.conf sgauth.css
- $(MAKE) -C $(DIR_LIBSRC) includes
+ $(MAKE) -C $(DIR_LIBSRC)
@>deps ;\
./make_css.sh
for file in $(SRCS); do\
- echo "`$(CC) $(CXXFLAGS) $(SEARCH_DIRS) -MM $$file` Makefile" >> deps ;\
- echo -e '\t$$(CC) -c $$< $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\
+ echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile" >> deps ;\
+ echo -e '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\
done
user.cpp \
proto.cpp
-STGLIBS = -lstgcrypto \
- -lstgcommon \
- -ldotconfpp
+STGLIBS = crypto \
+ common \
+ dotconfpp \
+ locker
-LIBS += $(LIB_THREAD)
+STGLIBS_INCS = $(addprefix -I ../../stglibs/,$(addsuffix .lib/include,$(STGLIBS)))
+STGLIBS_LIBS = $(addprefix -L ../../stglibs/,$(addsuffix .lib,$(STGLIBS)))
+
+LIBS += $(LIB_THREAD) $(addprefix -lstg,$(STGLIBS))
ifeq ($(OS),linux)
LIBS += -ldl
-lc
endif
-SEARCH_DIRS = -I $(DIR_INCLUDE)
+SEARCH_DIRS = -I ../../include
OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
-CXXFLAGS += -Wall
-LDFLAGS += -Wl,-E -L$(DIR_LIB) -Wl,-rpath,$(PREFIX)/usr/lib/stg -Wl,-rpath-link,$(DIR_LIB)
-
-vpath %.a $(DIR_LIB)
+CXXFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
+CFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
+LDFLAGS += -Wl,-E $(STGLIBS_LIBS)
.PHONY: all clean distclean libs plugins
all: libs plugins $(PROG) ../../Makefile.conf
plugins: libs
$(MAKE) -C $(DIR_PLUGINS)
-$(PROG): $(OBJS) libs
- $(CXX) $(OBJS) $(LDFLAGS) $(LIBS) $(STGLIBS) -o $(PROG)
+$(PROG): $(OBJS)
+ $(CXX) $^ $(LDFLAGS) $(LIBS) -o $(PROG)
clean:
rm -f deps $(PROG) *.o *.*~
endif
deps: $(SRCS) ../../Makefile.conf
- $(MAKE) -C $(DIR_LIBSRC) includes
+ $(MAKE) -C $(DIR_LIBSRC)
@>deps ;\
for file in $(SRCS); do\
- echo "`$(CC) $(CXXFLAGS) $(SEARCH_DIRS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\
- echo -e '\t$$(CC) -c $$< $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\
+ echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\
+ echo -e '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\
done
SRCS = ./main.cpp \
./common_sg.cpp
-STGLIBS = -lstgconffiles \
- -lstgsrvconf \
- -lstgcommon \
- -lstgcrypto
+STGLIBS = conffiles \
+ srvconf \
+ common \
+ crypto
-LIBS += -lexpat \
- $(LIB_THREAD)
+STGLIBS_INCS = $(addprefix -I ../../stglibs/,$(addsuffix .lib/include,$(STGLIBS)))
+STGLIBS_LIBS = $(addprefix -L ../../stglibs/,$(addsuffix .lib,$(STGLIBS)))
+
+LIBS += -lexpat $(LIB_THREAD) $(addprefix -lstg,$(STGLIBS))
ifeq ($(OS),linux)
-LIBS += -ldl
else
LIBS += -lc \
-liconv
endif
-SEARCH_DIRS = -I $(DIR_INCLUDE)
+SEARCH_DIRS = -I ../../include
ifeq ($(OS),bsd)
SEARCH_DIRS += -I/usr/local/include
OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
-CXXFLAGS += -Wall
-LDFLAGS += -Wl,-E -L$(DIR_LIB) -Wl,-rpath,$(PREFIX)/usr/lib/stg -Wl,-rpath-link,$(DIR_LIB)
-
-vpath %.a $(DIR_LIB)
+CXXFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
+CFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
+LDFLAGS += -Wl,-E $(STGLIBS_LIBS)
.PHONY: all clean distclean libs install uninstall install-bin install-data uninstall-bin uninstall-data
all: libs $(PROG) ../../Makefile.conf
libs:
$(MAKE) -C $(DIR_LIBSRC)
-$(PROG): $(OBJS) $(STGLIBS)
+$(PROG): $(OBJS)
$(CXX) $^ $(LDFLAGS) $(LIBS) -o $(PROG)
clean:
endif
deps: $(SRCS) ../../Makefile.conf
- $(MAKE) -C $(DIR_LIBSRC) includes
+ $(MAKE) -C $(DIR_LIBSRC)
@>deps ;\
for file in $(SRCS); do\
- echo "`$(CC) $(CXXFLAGS) $(SEARCH_DIRS) -MM $$file` Makefile" >> deps ;\
- echo -e '\t$$(CC) -c $$< $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\
+ echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile" >> deps ;\
+ echo -e '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\
done
SRCS = ./main.cpp \
./parser.cpp
-LIBS = -lstgconffiles \
- -lstgsrvconf \
- -lstgcrypto \
- -lstgcommon
+STGLIBS = conffiles \
+ srvconf \
+ crypto \
+ common
-LIBS += -lexpat \
- $(LIB_THREAD)
+STGLIBS_INCS = $(addprefix -I ../../stglibs/,$(addsuffix .lib/include,$(STGLIBS)))
+STGLIBS_LIBS = $(addprefix -L ../../stglibs/,$(addsuffix .lib,$(STGLIBS)))
+
+LIBS += -lexpat $(LIB_THREAD) $(addprefix -lstg,$(STGLIBS))
ifeq ($(OS),linux)
-LIBS += -ldl
else
LIBS += -lc \
-liconv
endif
-SEARCH_DIRS = -I $(DIR_INCLUDE)
+SEARCH_DIRS = -I ../../include
ifeq ($(OS),bsd)
SEARCH_DIRS += -I/usr/local/include
OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
-CXXFLAGS += -Wall
-LDFLAGS += -Wl,-E -L$(DIR_LIB) -Wl,-rpath,$(PREFIX)/usr/lib/stg -Wl,-rpath-link,$(DIR_LIB)
-
-vpath %.a $(DIR_LIB)
+CXXFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
+CFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
+LDFLAGS += -Wl,-E $(STGLIBS_LIBS)
.PHONY: all clean distclean libs install uninstall install-bin install-data uninstall-bin uninstall-data
all: libs $(PROG) ../../Makefile.conf
libs:
$(MAKE) -C $(DIR_LIBSRC)
-$(PROG): $(OBJS) $(STGLIBS)
+$(PROG): $(OBJS)
$(CXX) $^ $(LIBS) $(LDFLAGS) -o $(PROG)
clean:
endif
deps: $(SRCS) ../../Makefile.conf
- $(MAKE) -C $(DIR_LIBSRC) includes
+ $(MAKE) -C $(DIR_LIBSRC)
@>deps ;\
for file in $(SRCS); do\
- echo "`$(CC) $(CXXFLAGS) $(SEARCH_DIRS) -MM $$file` Makefile" >> deps ;\
- echo -e '\t$$(CC) -c $$< $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\
+ echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile" >> deps ;\
+ echo -e '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\
done
./user_property.cpp \
./users_impl.cpp
-STGLIBS = -lstglogger \
- -lstglocker \
- -lstgcommon \
- -lstgscriptexecuter \
- -ldotconfpp
+STGLIBS = logger \
+ locker \
+ common \
+ scriptexecuter \
+ dotconfpp
-LIBS += -lexpat
+STGLIBS_INCS = $(addprefix -I ../../stglibs/,$(addsuffix .lib/include,$(STGLIBS)))
+STGLIBS_LIBS = $(addprefix -L ../../stglibs/,$(addsuffix .lib,$(STGLIBS)))
+
+LIBS += -lexpat $(LIB_THREAD) $(addprefix -lstg,$(STGLIBS))
ifeq ($(OS),linux)
-LIBS += $(LIB_THREAD) \
- -ldl
+LIBS += -ldl
else
-LIBS += $(LIB_THREAD) \
- -lc
+LIBS += -lc
endif
-SEARCH_DIRS = -I $(DIR_INCLUDE)
+SEARCH_DIRS = -I ../../include
OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
-LDFLAGS += -Wl,-E -L$(DIR_LIB) -Wl,-rpath,$(PREFIX)/usr/lib/stg -Wl,-rpath-link,$(DIR_LIB)
-vpath %.so $(DIR_LIB)
+CXXFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
+CFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
+LDFLAGS += -Wl,-E $(STGLIBS_LIBS)
.PHONY: all clean distclean libs plugins install uninstall install-bin install-data
all: libs plugins $(PROG)
plugins: libs
$(MAKE) -C $(DIR_PLUGINS)
-$(PROG): $(OBJS) libs
- $(CXX) $(OBJS) $(LDFLAGS) $(LIBS) $(STGLIBS) -o $(PROG)
+$(PROG): $(OBJS)
+ $(CXX) $^ $(LDFLAGS) $(LIBS) -o $(PROG)
clean:
rm -f deps $(PROG) *.o tags *.*~ .OS
endif
deps: $(SRCS) ../../Makefile.conf
- $(MAKE) -C $(DIR_LIBSRC) includes
+ $(MAKE) -C $(DIR_LIBSRC)
@>deps ;\
for file in $(SRCS); do\
- echo "`$(CC) $(CXXFLAGS) $(SEARCH_DIRS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\
- echo -e '\t$$(CC) -c $$< $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\
+ echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\
+ echo -e '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\
done
LN = ln
-CXXFLAGS += -fPIC
-CFLAGS += -fPIC
-LDFLAGS += -shared -L$(DIR_LIB) -Wl,-rpath,$(PREFIX)/usr/lib/stg
+STGLIBS_INCS = $(addprefix -I ../../../../../stglibs/,$(addsuffix .lib/include,$(STGLIBS)))
+STGLIBS_LIBS = $(addprefix -L ../../../../../stglibs/,$(addsuffix .lib,$(STGLIBS)))
-vpath %.a $(DIR_LIB)
+LIBS += $(addprefix -lstg,$(STGLIBS))
+
+CXXFLAGS += -fPIC $(STGLIBS_INCS)
+CFLAGS += -fPIC $(STGLIBS_INCS)
+LDFLAGS += -shared -Wl,-rpath,$(PREFIX)/usr/lib/stg $(STGLIBS_LIBS)
all: $(PROG)
-$(PROG): $(OBJS) $(STGLIBS)
+$(PROG): $(OBJS)
$(CXX) $^ $(LDFLAGS) $(LIBS) -o $(PROG)
$(LN) -fs "`pwd`/$(PROG)" $(DIR_MOD)/$(PROG)
SRCS = ./ao.cpp
-STGLIBS = -lstgcommon
+STGLIBS = common \
+ logger \
+ locker \
+ scriptexecuter
include ../../Makefile.in
SRCS = ./inetaccess.cpp
-STGLIBS = -lstgcommon -lstgcrypto
+STGLIBS = common \
+ crypto \
+ logger \
+ locker \
+ scriptexecuter
include ../../Makefile.in
LIBS += $(LIB_THREAD)
+STGLIBS = common \
+ logger \
+ locker \
+ scriptexecuter
+
include ../../Makefile.in
./tcp.c \
./udp.c
-STGLIBS = -lstgcommon
+STGLIBS = common
LIBS += $(LIB_THREAD)
SRCS = ./cap_nf.cpp
LIBS += $(LIB_THREAD)
-STGLIBS = -lstgcommon
+
+STGLIBS = common
include ../../Makefile.in
SRCS = ./divert_cap.cpp
-STGLIBS = -lstgcommon
-
LIBS += $(LIB_THREAD)
+STGLIBS = common
+
include ../../Makefile.in
SRCS = ./ether_cap.cpp
-STGLIBS = -lstgcommon
-
LIBS += $(LIB_THREAD)
+STGLIBS = common
+
include ../../Makefile.in
SRCS = ./ether_cap.cpp
LIBS += $(LIB_THREAD)
-STGLIBS = -lstgcommon
+
+STGLIBS = common
include ../../Makefile.in
./libipq.c
LIBS += $(LIB_THREAD)
-STGLIBS = -lstgcommon
+
+STGLIBS = common
include ../../Makefile.in
LIBS += -liconv
endif
-STGLIBS = -lstgcommon -lstglogger
+STGLIBS = common \
+ locker \
+ logger \
+ scriptexecuter
include ../../Makefile.in
LIBS += -lexpat \
-lboost_thread-mt
-STGLIBS = -lstgcommon -lstglogger -lcrypto
+STGLIBS = common \
+ logger \
+ crypto
include ../../Makefile.in
LIBS += -lexpat \
$(LIB_THREAD)
-STGLIBS = -lstgcommon -lstglogger -lstgcrypto
+STGLIBS = common \
+ locker \
+ logger \
+ crypto \
+ scriptexecuter
include ../../Makefile.in
LIBS += -lexpat \
$(LIB_THREAD)
-STGLIBS = -lstgcommon -lstglogger
+STGLIBS = common \
+ logger
include ../../Makefile.in
SRCS = ./ping.cpp
-STGLIBS = -lstgpinger -lstgcommon
+STGLIBS = pinger \
+ common \
+ locker \
+ logger \
+ scriptexecuter
include ../../Makefile.in
SRCS = ./radius.cpp
-STGLIBS = -lstgcommon -lstgcrypto
+STGLIBS = common \
+ crypto \
+ logger \
+ locker \
+ scriptexecuter
include ../../Makefile.in
SRCS = ./rscript.cpp \
./nrmap_parser.cpp
-STGLIBS = -lstgcommon -lstgcrypto
+STGLIBS = common \
+ crypto \
+ locker \
+ logger \
+ scriptexecuter
include ../../Makefile.in
utils.cpp \
types.cpp
-STGLIBS = -lstgcommon -lstgsmux
+STGLIBS = common \
+ smux \
+ logger \
+ locker \
+ scriptexecuter
-CXXFLAGS += -I$(DIR_INCLUDE)/stg
+CFLAGS += -I ../../../../../stglibs/smux.lib/include/stg
+CXXFLAGS += -I ../../../../../stglibs/smux.lib/include/stg
include ../../Makefile.in
-
-.PHONY: asn1
-
-asn1:
- $(MAKE) -C asn1 asn1
SRCS = ./file_store.cpp
-STGLIBS = -lstgconffiles -lstgcommon -lstglocker -lstgcrypto
+STGLIBS = conffiles \
+ common \
+ locker \
+ logger \
+ crypto
include ../../Makefile.in
./firebird_store_users.cpp \
./firebird_store_utils.cpp
-STGLIBS = -libpp -lstgcommon -lstglocker -lstgcrypto
+STGLIBS = ibpp \
+ common \
+ locker \
+ crypto
include ../../Makefile.in
SRCS = ./mysql_store.cpp
-STGLIBS = -lstgcommon -lstgcrypto
+STGLIBS = common \
+ crypto
MYSQL_CFLAGS = $(shell mysql_config --cflags)
MYSQL_LDFLAGS = $(shell mysql_config --libs_r)
./postgresql_store_users.cpp \
./postgresql_store_utils.cpp
-STGLIBS = -lstgcommon -lstgcrypto
+STGLIBS = common \
+ crypto \
+ locker
PG_CFLAGS = $(shell pg_config --includedir)
PG_LDFLAGS = $(shell pg_config --libdir)
includes: all
clean: all
- rm -f $(DIR_LIB)/*
install: all
uninstall: all
-
PROG = lib$(LIB_NAME).a
-SEARCH_DIRS = -I $(DIR_INCLUDE) -I . -I ./include
+SEARCH_DIRS = -I ../../include -I . -I ./include
ifeq ($(STG_TIME), yes)
DEFS += -DSTG_TIME
OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
-#INST_INCS = $(addprefix $(DIR_INCLUDE)/, $(notdir $(INCS)))
-#INST_LIBS = $(DIR_LIB)/lib$(LIB_NAME)
-
-CXXFLAGS += -fPIC
-CFLAGS += -fPIC
-
-vpath %.a $(DIR_LIB)
+CXXFLAGS += -fPIC $(SEARCH_DIRS) $(DEFS)
+CFLAGS += -fPIC $(SEARCH_DIRS) $(DEFS)
all: $(PROG)
-$(PROG): $(OBJS) $(STGLIBS)
+$(PROG): $(OBJS)
ar rc lib$(LIB_NAME).a $(OBJS)
ranlib lib$(LIB_NAME).a
- #cp *.a $(DIR_LIB)
-
-#includes: $(INCS)
-# cp -p $(INCS) $(DIR_INCLUDE)/stg
clean:
rm -f deps $(PROG) *.o *.a *.so tags *.*~
- #for file in $(INCS); do \
- # rm -f $(DIR_INCLUDE)/stg/$$file; \
- #done
install: $(PROG)
mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/lib/stg
echo "$$file" | grep ".c$$" > /dev/null;\
if [ $$? == 0 ];\
then\
- echo "`$(CC) $(CFLAGS) $(SEARCH_DIRS) $(DEFS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\
- echo -e '\t$$(CC) $(CFLAGS) $(SEARCH_DIRS) $(DEFS) -c $$<' >> deps ;\
+ echo "`$(CC) $(CFLAGS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\
+ echo -e '\t$$(CC) $(CFLAGS) -c $$<' >> deps ;\
else\
- echo "`$(CXX) $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\
- echo -e '\t$$(CXX) $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS) -c $$<' >> deps ;\
+ echo "`$(CXX) $(CXXFLAGS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\
+ echo -e '\t$$(CXX) $(CXXFLAGS) -c $$<' >> deps ;\
fi;\
done
-
# $Id: Makefile,v 1.3 2007/05/08 14:29:19 faust Exp $
###############################################################################
-LIB_NAME = dotconfpp
+LIB_NAME = stgdotconfpp
SRCS = dotconfpp.cpp \
mempool.cpp
# $Id: Makefile,v 1.6 2009/03/03 15:50:15 faust Exp $
###############################################################################
-LIB_NAME = ibpp
+LIB_NAME = stgibpp
SRCS = array.cpp \
blob.cpp \