Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'extern/verse/dist/Makefile')
-rw-r--r--extern/verse/dist/Makefile85
1 files changed, 4 insertions, 81 deletions
diff --git a/extern/verse/dist/Makefile b/extern/verse/dist/Makefile
index 7dbcf4708db..69b5590b2bc 100644
--- a/extern/verse/dist/Makefile
+++ b/extern/verse/dist/Makefile
@@ -7,86 +7,9 @@
# and running other C files (this is the protocol definition).
#
-CC ?= gcc
-CFLAGS ?= "-I$(shell pwd)" -Wall -Wpointer-arith -Wno-unused-parameter -ansi -g # -pg -O2 -finline-functions
-LDFLAGS ?= # -pg
+LIBNAME = verse
+DIR = $(OCGDIR)/extern/$(LIBNAME)
-AR ?= ar
-ARFLAGS = rus
-RANLIB ?= ranlib
+include nan_compile.mk
-TARGETS = libverse.a verse
-
-.PHONY: all clean cleanprot
-
-# Automatically generated protocol things.
-PROT_DEF = $(wildcard v_cmd_def_*.c)
-PROT_TOOL = v_cmd_gen.c $(PROT_DEF)
-PROT_OUT = v_gen_pack_init.c v_gen_unpack_func.h verse.h \
- $(patsubst v_cmd_def_%.c,v_gen_pack_%_node.c, $(PROT_DEF))
-
-# The API implementation is the protocol code plus a few bits.
-LIBVERSE_SRC = $(PROT_OUT) v_bignum.c v_cmd_buf.c v_connect.c \
- v_connection.c v_connection.h v_encryption.c \
- v_func_storage.c v_internal_verse.h v_man_pack_node.c \
- v_network.c v_network.h v_network_in_que.c v_network_out_que.c \
- v_pack.c v_pack.h v_pack_method.c v_prime.c v_randgen.c v_util.c \
- verse_ms.c
-
-LIBVERSE_OBJ = $(patsubst %h,, $(LIBVERSE_SRC:%.c=%.o))
-
-# The server is a simple 1:1 mapping, so just use wildcards.
-VERSE_SRC = $(wildcard vs_*.c)
-VERSE_OBJ = $(VERSE_SRC:%.c=%.o)
-
-# -----------------------------------------------------
-
-all: $(TARGETS)
-
-verse: $(VERSE_OBJ) libverse.a
- $(CC) $(LDFLAGS) -o $@ $^
-
-libverse.a: libverse.a($(LIBVERSE_OBJ))
-
-# -----------------------------------------------------
-
-# Here are the automatically generated pieces of the puzzle.
-# Basically, we generate v_gen_pack_X_node.c files by compiling
-# the v_cmd_def_X.c files together with some driver glue and
-# running the result.
-#
-
-# The autogen outputs all depend on the tool.
-$(PROT_OUT): mkprot
- ./mkprot
-
-# Build the protocol maker, from the definitions themselves.
-mkprot: $(PROT_TOOL) verse_header.h
- $(CC) -DV_GENERATE_FUNC_MODE -o $@ $(PROT_TOOL)
-
-# Clean away all the generated parts of the protocol implementation.
-cleanprot: clean
- rm -f mkprot $(PROT_OUT)
-
-# -----------------------------------------------------
-
-clean:
- rm -f *.o $(TARGETS) mkprot
-
-# -----------------------------------------------------
-
-# Utter ugliness to create release archives. Needs to improve, but should work for a while.
-dist:
- RELEASE=$$( \
- R=`grep V_RELEASE_NUMBER verse.h | tr -s ' \t' | tr -d '"\r' | cut -d' ' -f3` ; \
- P=`grep V_RELEASE_PATCH verse.h | tr -s ' \t' | tr -d '"\r' | cut -d' ' -f3` ; \
- L=`grep V_RELEASE_LABEL verse.h | tr -s ' \t' | tr -d '"\r' | cut -d' ' -f3` ; echo r$${R}p$$P$$L ) ; \
- if [ $$RELEASE ]; then ( \
- rm -rf /tmp/verse; \
- mkdir -p /tmp/verse; \
- cp -a * /tmp/verse; \
- cd /tmp && zip verse-$$RELEASE.zip -r verse -x 'verse/*CVS*' -x 'verse/.*' ; \
- ); mv /tmp/verse-$$RELEASE.zip . \
- ;else \
- echo "Couldn't auto-set RELEASE from verse.h, something is fishy" \
- ;fi
+# TARGETS = verse