quakeforge/libs/gamecode/Makemodule.am
Bill Currie 0b92cd3a88 [gamecode] Generate the new opcode table
As I expect to be tweaking things for a while, it's part of the build
process. This will make it a lot easier to adjust mnemonics and argument
formats (tweaking the old table was a pain when conventions changed).

It's not quite done as it still needs arg widths and types.
2022-01-05 19:09:07 +09:00

34 lines
1 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_src = \
${pr_opcode_cinc}
libs/gamecode/pr_opcode.lo: libs/gamecode/pr_opcode.c ${pr_opcode_src}
$(pr_opcode_cinc): $(opcodes_py)
$(V_PY)$(PYTHON) $(opcodes_py) > $(pr_opcode_cinc).t && \
$(am__mv) $(pr_opcode_cinc).t $(pr_opcode_cinc)