mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-08 00:32:11 +00:00
Not all possibilities are supported because converting between int and uint, and long and ulong is essentially a no-op. However, thanks to Deek's suggestion, not only are all reasonable conversions available, conversions for all widths are available, so vector conversions are supported. The code for the conversions is generated.
50 lines
1.6 KiB
Text
50 lines
1.6 KiB
Text
include libs/gamecode/test/Makemodule.am
|
|
|
|
gc_deps=libs/util/libQFutil.la
|
|
|
|
noinst_LTLIBRARIES += libs/gamecode/libQFgamecode.la
|
|
|
|
libs_gamecode_libQFgamecode_la_LDFLAGS=
|
|
libs_gamecode_libQFgamecode_la_LIBADD= $(gc_deps)
|
|
libs_gamecode_libQFgamecode_la_DEPENDENCIES=$(gc_deps)
|
|
libs_gamecode_libQFgamecode_la_SOURCES= \
|
|
libs/gamecode/pr_builtins.c \
|
|
libs/gamecode/pr_edict.c \
|
|
libs/gamecode/pr_debug.c \
|
|
libs/gamecode/pr_exec.c \
|
|
libs/gamecode/pr_load.c \
|
|
libs/gamecode/pr_opcode.c \
|
|
libs/gamecode/pr_parse.c \
|
|
libs/gamecode/pr_resolve.c \
|
|
libs/gamecode/pr_resource.c \
|
|
libs/gamecode/pr_strings.c \
|
|
libs/gamecode/pr_v6p_opcode.c \
|
|
libs/gamecode/pr_zone.c
|
|
|
|
noinst_PYTHON += $(opcodes_py)
|
|
|
|
opcodes_py = $(srcdir)/libs/gamecode/opcodes.py
|
|
pr_opcode_cinc = $(top_builddir)/libs/gamecode/pr_opcode.cinc
|
|
pr_opcode_hinc = $(top_builddir)/include/QF/progs/pr_opcode.hinc
|
|
pr_opcode_src = \
|
|
${pr_opcode_cinc} \
|
|
${pr_opcode_hinc}
|
|
libs/gamecode/pr_opcode.lo: libs/gamecode/pr_opcode.c ${pr_opcode_src}
|
|
|
|
convert_py = $(srcdir)/libs/gamecode/convert.py
|
|
pr_convert_cinc = $(top_builddir)/libs/gamecode/pr_convert.cinc
|
|
|
|
BUILT_SOURCES += $(pr_opcode_cinc) $(pr_opcode_hinc) $(pr_convert_cinc)
|
|
|
|
$(pr_opcode_cinc): $(opcodes_py)
|
|
$(V_PY)$(PYTHON) $(opcodes_py) table > $(pr_opcode_cinc).t && \
|
|
$(am__mv) $(pr_opcode_cinc).t $(pr_opcode_cinc)
|
|
|
|
$(pr_opcode_hinc): $(opcodes_py)
|
|
$(V_PY) mkdir -p `dirname $(pr_opcode_hinc)` &&\
|
|
$(PYTHON) $(opcodes_py) enum > $(pr_opcode_hinc).t && \
|
|
$(am__mv) $(pr_opcode_hinc).t $(pr_opcode_hinc)
|
|
|
|
$(pr_convert_cinc): $(convert_py)
|
|
$(V_PY)$(PYTHON) $(convert_py) table > $(pr_convert_cinc).t && \
|
|
$(am__mv) $(pr_convert_cinc).t $(pr_convert_cinc)
|