X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/7e0f07b593a81c4f1bf0101cdc66968ae40462fb..1487578f4887f49661320e24e311074a9af36f80:/projects/sgconf/Makefile diff --git a/projects/sgconf/Makefile b/projects/sgconf/Makefile index be513439..3a64cb61 100644 --- a/projects/sgconf/Makefile +++ b/projects/sgconf/Makefile @@ -7,10 +7,18 @@ include ../../Makefile.conf PROG = sgconf SRCS = ./main.cpp \ - ./common_sg.cpp - -STGLIBS = conffiles \ - srvconf \ + ./options.cpp \ + ./api_action.cpp \ + ./actions.cpp \ + ./admins.cpp \ + ./tariffs.cpp \ + ./users.cpp \ + ./services.cpp \ + ./corps.cpp \ + ./info.cpp \ + ./xml.cpp + +STGLIBS = srvconf \ crypto \ common @@ -23,9 +31,6 @@ ifeq ($(OS),linux) else LIBS += -lc \ -liconv -D_FLAG = -D -else -D_FLAG = -d endif SEARCH_DIRS = -I ../../include @@ -60,11 +65,7 @@ $(PROG): $(OBJS) $(CXX) $^ $(LDFLAGS) $(LIBS) -o $(PROG) clean: - rm -f deps $(PROG) *.o tags *.*~ .OS - rm -f .OS - rm -f .store - rm -f .db.sql - rm -f core* + rm -f deps $(PROG) *.o $(MAKE) -C $(DIR_LIBSRC) clean distclean: clean @@ -74,9 +75,11 @@ install: install-bin install-bin: ifeq ($(DEBUG), yes) - install $(D_FLAG) -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/bin/$(PROG) + mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/sbin + install -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/sbin/$(PROG) else - install $(D_FLAG) -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/bin/$(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_LIBSRC) install @@ -94,7 +97,7 @@ endif endif endif -deps: $(SRCS) ../../Makefile.conf +deps: $(SRCS) ../../Makefile.conf $(MAKE) -C $(DIR_LIBSRC) @>deps ;\ for file in $(SRCS); do\