X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/a89444b19b0ceb41db8db6cfa4e6fa77e26d7759..fd41f8dfd1133e89f6b5ac675fe2b5068b6bb652:/projects/stargazer/Makefile diff --git a/projects/stargazer/Makefile b/projects/stargazer/Makefile index aa2b6f90..e127d4f8 100644 --- a/projects/stargazer/Makefile +++ b/projects/stargazer/Makefile @@ -13,6 +13,7 @@ SRCS = ./admin_impl.cpp \ ./main.cpp \ ./pidfile.cpp \ ./plugin_runner.cpp \ + ./plugin_mgr.cpp \ ./settings_impl.cpp \ ./services_impl.cpp \ ./stg_timer.cpp \ @@ -26,19 +27,18 @@ SRCS = ./admin_impl.cpp \ STGLIBS = scriptexecuter \ dotconfpp \ - locker \ logger \ common STGLIBS_INCS = $(addprefix -I ../../stglibs/,$(addsuffix .lib/include,$(STGLIBS))) STGLIBS_LIBS = $(addprefix -L ../../stglibs/,$(addsuffix .lib,$(STGLIBS))) -LIBS += $(addprefix -lstg,$(STGLIBS)) $(LIB_THREAD) +LIBS += $(addprefix -lstg,$(STGLIBS)) $(LIB_THREAD) $(LIBICONV) ifeq ($(OS),linux) LIBS += -ldl else -LIBS += -lc -liconv +LIBS += -lc endif SEARCH_DIRS = -I ../../include @@ -49,7 +49,7 @@ CXXFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS) CFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS) ifneq ($(OS),darwin) -LDFLAGS += -Wl,-E $(STGLIBS_LIBS) +LDFLAGS += -Wl,-E endif LDFLAGS += $(STGLIBS_LIBS) @@ -83,9 +83,11 @@ install: install-bin install-data install-bin: $(PROG) ifeq ($(DEBUG), yes) - install -D -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/sbin/$(PROG) + mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/sbin + install -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/sbin/$(PROG) else - install -D -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/sbin/$(PROG) + mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/sbin + install -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/sbin/$(PROG) endif $(MAKE) -C $(DIR_INCLUDE) install $(MAKE) -C $(DIR_LIBSRC) install