X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/b95edc0574dc2ebc65b197b1b1ad464821dfe519..452637bc90525a9a5b412ab99793006cf14c1e31:/projects/sgauth/Makefile diff --git a/projects/sgauth/Makefile b/projects/sgauth/Makefile index 99cd0e47..c6c733f0 100644 --- a/projects/sgauth/Makefile +++ b/projects/sgauth/Makefile @@ -20,10 +20,11 @@ STGLIBS_LIBS = $(addprefix -L ../../stglibs/,$(addsuffix .lib,$(STGLIBS))) LIBS += $(addprefix -lstg,$(STGLIBS)) $(LIB_THREAD) -ifneq ($(OS),linux) +ifeq ($(OS),linux) +else LIBS += -lintl \ -lc \ - -liconv + -liconv endif SEARCH_DIRS = -I ../../include @@ -32,7 +33,7 @@ OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS)))) CXXFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS) CFLAGS += $(DEFS) $(STGLIBS_INCS) $(SEARCH_DIRS) -LDFLAGS += -Wl,-E $(STGLIBS_LIBS) +LDFLAGS += $(STGLIBS_LIBS) .PHONY: all clean distclean libs install uninstall install-bin install-data uninstall-bin uninstall-data all: libs $(PROG) ../../Makefile.conf @@ -58,7 +59,13 @@ distclean: clean install: install-bin install-data install-bin: +ifeq ($(DEBUG), yes) + mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/sbin + install -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/sbin/$(PROG) +else + 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 install-data: