X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/c8c3c534f5e3b243ba524d8b24a60b0dad238dee..46b0747592074017ff0ea4b33d4a7194235886e5:/stglibs/Makefile.in diff --git a/stglibs/Makefile.in b/stglibs/Makefile.in deleted file mode 100644 index c6db5f99..00000000 --- a/stglibs/Makefile.in +++ /dev/null @@ -1,90 +0,0 @@ -############################################################################### -# $Id: Makefile.in,v 1.28 2009/03/03 15:50:14 faust Exp $ -############################################################################### - -include ../../Makefile.conf - -PROG = lib$(LIB_NAME).so - -ifeq ($(PROT), on) -DEFS += -DLINPROT -endif - -ifeq ($(DEMO), on) -DEFS += -DDEMO -endif - -ifeq ($(OS), bsd) - ifeq ($(PROT), on) - DEFS += -DFREEBDSPROT - endif -MAKE = gmake -endif - -ifeq ($(OS), bsd5) - ifeq ($(PROT), on) - DEFS += -DFREEBDSPROT - endif -MAKE = gmake -endif - -ifeq ($(STG_TIME), yes) -DEFS += -DSTG_TIME -endif - -ifneq ($(ADD_DEFS),) -DEFS += $(ADD_DEFS) -endif - -SEARCH_DIRS = -I $(DIR_INCLUDE) -I ./ - -OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS)))) - -INST_INCS = $(addprefix $(DIR_INCLUDE)/, $(notdir $(INCS))) -INST_LIBS = $(DIR_LIB)/lib$(LIB_NAME) - -CXXFLAGS += -fPIC $(DEFS) -LDFLAGS += -shared -Wl,-rpath,$(PREFIX)/usr/lib/stg - -vpath %.so $(DIR_LIB) - -all: $(PROG) - -$(PROG): $(OBJS) $(STGLIBS) - $(CXX) $(LDFLAGS) -Wl,-soname,$(PROG) $^ $(LIBS) -o $(PROG) -L $(DIR_LIB) - ar rc lib$(LIB_NAME).a $(OBJS) - ranlib lib$(LIB_NAME).a - cp *.so $(DIR_LIB) - cp *.a $(DIR_LIB) - -includes: $(INCS) - cp -p $(INCS) $(DIR_INCLUDE) - -clean: - rm -f deps $(PROG) *.o *.a *.so tags *.*~ - for file in $(INCS); do \ - rm -f $(DIR_INCLUDE)/$$file; \ - done - -install: $(PROG) - mkdir -m $(BIN_MODE) -p $(PREFIX)/usr/lib/stg - install -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/stg/$(PROG) - -uninstall: - rm -f $(PREFIX)/usr/lib/stg/$(PROG) - -ifneq ($(MAKECMDGOALS),includes) -ifneq ($(MAKECMDGOALS),clean) -ifneq ($(MAKECMDGOALS),uninstall) --include deps -endif -endif -endif - -deps: $(SRCS) ../../Makefile.conf - @>deps ;\ - for file in $(SRCS); do\ - echo "`$(CC) $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS) -MM -MG $$file` Makefile ../../Makefile.conf" >> deps ;\ - echo -e '\t$$(CC) $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS) -c $$<' >> deps ;\ - done -