# tmpasm script for compiling a plugin_src/ module as a buildin
# Requires variables before the include:
#  /local/rnd/mod       basename of the module (e.g. autoplace)
#  /local/rnd/mod/OBJS  full path of all object files
#  /local/rnd/mod/OBJS_C99  full path of all object files for non-c89
#  /local/rnd/mod/CONF  config file name

append /local/camv/buildin_pups [@@/local/rnd/mod@=@/local/rnd/mod@/@/local/rnd/mod@.pup@] {\n}

append /local/camv/MOD_OBJS           ?/local/rnd/mod/OBJS
append /local/camv/MOD_OBJS_C99       ?/local/rnd/mod/OBJS_C99
append /local/camv/MOD_LDFLAGS        /local/rnd/mod/LDFLAGS
append /local/camv/MOD_CFLAGS         /local/rnd/mod/CFLAGS
append /local/camv/MOD_RULES [@

mod_@/local/rnd/mod@: all

@]

include /local/camv/tmpasm/common_enabled
