X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/7ff01d4395b25b73c3c329432ae47aa64b3e3ecf..efa325bd271ac3a54dffc6ade7090d4f86f0a5b0:/projects/rscriptd/Makefile?ds=sidebyside diff --git a/projects/rscriptd/Makefile b/projects/rscriptd/Makefile index 53029eb6..581b3275 100644 --- a/projects/rscriptd/Makefile +++ b/projects/rscriptd/Makefile @@ -10,21 +10,21 @@ SRCS = ./main.cpp \ ./listener.cpp \ ./pidfile.cpp -STGLIBS = logger \ - locker \ - common \ - crypto \ - scriptexecuter \ - conffiles - -ifneq ($(OS),linux) -LIBS += -liconv -endif +STGLIBS = scriptexecuter \ + conffiles \ + logger \ + locker \ + crypto \ + common STGLIBS_INCS = $(addprefix -I ../../stglibs/,$(addsuffix .lib/include,$(STGLIBS))) STGLIBS_LIBS = $(addprefix -L ../../stglibs/,$(addsuffix .lib,$(STGLIBS))) -LIBS += $(LIB_THREAD) $(addprefix -lstg,$(STGLIBS)) +LIBS += $(addprefix -lstg,$(STGLIBS)) $(LIB_THREAD) + +ifneq ($(OS),linux) +LIBS += -liconv +endif SEARCH_DIRS = -I ../../include @@ -88,7 +88,5 @@ deps: $(SRCS) ../../Makefile.conf @>deps ;\ for file in $(SRCS); do\ echo "`$(CC) $(CXXFLAGS) -MM $$file` Makefile" >> deps ;\ - echo -e '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\ + printf '%b\n' '\t$$(CC) -c $$< $(CXXFLAGS)' >> deps ;\ done - -