X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/04d7ddb9da330539a3026cd26b4ba6d0ee82a395..8f46a826a07310dbd76e4b3a15f63ae055272542:/stglibs/Makefile.in diff --git a/stglibs/Makefile.in b/stglibs/Makefile.in index b768b163..a378f489 100644 --- a/stglibs/Makefile.in +++ b/stglibs/Makefile.in @@ -28,15 +28,20 @@ CFLAGS += -fPIC $(SEARCH_DIRS) $(DEFS) all: $(PROG) $(PROG): $(OBJS) - ar rc lib$(LIB_NAME).a $(OBJS) - ranlib lib$(LIB_NAME).a + $(AR) rc lib$(LIB_NAME).a $(OBJS) + $(RANLIB) lib$(LIB_NAME).a clean: - rm -f deps $(PROG) *.o *.a *.so tags *.*~ + rm -f deps $(PROG) *.o *.a *.so tags *.*~ install: $(PROG) +ifeq ($(DEBUG), yes) + mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/lib/stg + install -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/lib/stg/$(PROG) +else mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/lib/stg install -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/stg/$(PROG) +endif mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/include/stg install -m $(DATA_MODE) -o $(OWNER) $(addprefix include/stg/,$(INCS)) $(PREFIX)/usr/include/stg/ @@ -61,9 +66,9 @@ deps: $(SRCS) ../../Makefile.conf if [ $$? -eq 0 ];\ then\ echo "`$(CC) $(CFLAGS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\ - echo -e '\t$$(CC) $(CFLAGS) -c $$<' >> deps ;\ + printf '%b\n' '\t$$(CC) $(CFLAGS) -c $$<' >> deps ;\ else\ echo "`$(CXX) $(CXXFLAGS) -MM $$file` Makefile ../../Makefile.conf" >> deps ;\ - echo -e '\t$$(CXX) $(CXXFLAGS) -c $$<' >> deps ;\ + printf '%b\n' '\t$$(CXX) $(CXXFLAGS) -c $$<' >> deps ;\ fi;\ done