git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved plugin-related things into a separate file.
[stg.git]
/
projects
/
stargazer
/
Makefile
diff --git
a/projects/stargazer/Makefile
b/projects/stargazer/Makefile
index 44ae35ec3007ebae87f6cef197526972043ae013..e210dc2fc99932377f2142078497dc1ed31e0795 100644
(file)
--- a/
projects/stargazer/Makefile
+++ b/
projects/stargazer/Makefile
@@
-13,6
+13,7
@@
SRCS = ./admin_impl.cpp \
./main.cpp \
./pidfile.cpp \
./plugin_runner.cpp \
./main.cpp \
./pidfile.cpp \
./plugin_runner.cpp \
+ ./plugin_mgr.cpp \
./settings_impl.cpp \
./services_impl.cpp \
./stg_timer.cpp \
./settings_impl.cpp \
./services_impl.cpp \
./stg_timer.cpp \
@@
-26,7
+27,6
@@
SRCS = ./admin_impl.cpp \
STGLIBS = scriptexecuter \
dotconfpp \
STGLIBS = scriptexecuter \
dotconfpp \
- locker \
logger \
common
logger \
common
@@
-47,7
+47,12
@@
OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
CXXFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
CFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
CXXFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
CFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
-LDFLAGS += -Wl,-E $(STGLIBS_LIBS)
+
+ifneq ($(OS),darwin)
+LDFLAGS += -Wl,-E
+endif
+
+LDFLAGS += $(STGLIBS_LIBS)
.PHONY: all clean distclean libs plugins install uninstall install-bin install-data
all: libs plugins $(PROG)
.PHONY: all clean distclean libs plugins install uninstall install-bin install-data
all: libs plugins $(PROG)
@@
-77,7
+82,11
@@
distclean: clean
install: install-bin install-data
install-bin: $(PROG)
install: install-bin install-data
install-bin: $(PROG)
- install -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/sbin/$(PROG)
+ifeq ($(DEBUG), yes)
+ install -D -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/sbin/$(PROG)
+else
+ install -D -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/sbin/$(PROG)
+endif
$(MAKE) -C $(DIR_INCLUDE) install
$(MAKE) -C $(DIR_LIBSRC) install
$(MAKE) -C $(DIR_PLUGINS) install
$(MAKE) -C $(DIR_INCLUDE) install
$(MAKE) -C $(DIR_LIBSRC) install
$(MAKE) -C $(DIR_PLUGINS) install