./main.cpp \
./pidfile.cpp \
./plugin_runner.cpp \
+ ./plugin_mgr.cpp \
./settings_impl.cpp \
./services_impl.cpp \
./stg_timer.cpp \
ifeq ($(OS),linux)
LIBS += -ldl
+D_FLAG = -D
else
LIBS += -lc -liconv
+D_FLAG = -d
endif
SEARCH_DIRS = -I ../../include
CFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS)
ifneq ($(OS),darwin)
-LDFLAGS += -Wl,-E $(STGLIBS_LIBS)
+LDFLAGS += -Wl,-E
endif
LDFLAGS += $(STGLIBS_LIBS)
install-bin: $(PROG)
ifeq ($(DEBUG), yes)
- install -D -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/sbin/$(PROG)
+ install $(D_FLAG) -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/sbin/$(PROG)
else
- install -D -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/sbin/$(PROG)
+ install $(D_FLAG) -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/sbin/$(PROG)
endif
$(MAKE) -C $(DIR_INCLUDE) install
$(MAKE) -C $(DIR_LIBSRC) install