1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
# tmpasm script for compiling a plugin_src/ module as a buildin
# Requires variables before the include:
# /local/pcb/mod basename of the module (e.g. autoplace)
# /local/pcb/mod/OBJS full path of all object files
# /local/pcb/mod/OBJS_C99 full path of all object files for non-c89
# /local/pcb/mod/CONF config file name
append /local/pcb/buildin_init_extern [@extern pcb_uninit_t hid_@/local/pcb/mod@_init();@] {\n}
append /local/pcb/buildin_pups [@@/local/pcb/mod@=@/local/pcb/mod@/@/local/pcb/mod@.pup@] {\n}
append /local/pcb/buildin_init_code [@
uninit_func = hid_@/local/pcb/mod@_init();
pcb_plugin_register("@/local/pcb/mod@", "<@/local/pcb/mod@>", NULL, 0, uninit_func);
@] {\n}
append /local/pcb/OBJS ?/local/pcb/mod/OBJS
append /local/pcb/OBJS_C99 ?/local/pcb/mod/OBJS_C99
append /local/pcb/LDFLAGS /local/pcb/mod/LDFLAGS
append /local/pcb/CFLAGS /local/pcb/mod/CFLAGS
append /local/pcb/RULES [@
mod_@/local/pcb/mod@: all
@]
include /local/pcb/tmpasm/common_enabled
|