X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/37aa013f3c1aabe48c6b01fe82f0d62d69f663af..7e0f07b593a81c4f1bf0101cdc66968ae40462fb:/projects/sgauth/Makefile diff --git a/projects/sgauth/Makefile b/projects/sgauth/Makefile index ef649119..3c538966 100644 --- a/projects/sgauth/Makefile +++ b/projects/sgauth/Makefile @@ -23,7 +23,10 @@ LIBS += $(addprefix -lstg,$(STGLIBS)) $(LIB_THREAD) ifneq ($(OS),linux) LIBS += -lintl \ -lc \ - -liconv + -liconv +D_FLAG = -D +else +D_FLAG = -d endif SEARCH_DIRS = -I ../../include @@ -59,9 +62,9 @@ install: install-bin install-data install-bin: 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_LIBSRC) install