File: Buildin.tmpasm

package info (click to toggle)
pcb-rnd 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 29,260 kB
  • sloc: ansic: 198,059; sh: 5,767; yacc: 5,568; makefile: 2,519; awk: 1,737; lex: 1,073; python: 519; lisp: 169; tcl: 67; xml: 40; perl: 34; ruby: 5
file content (27 lines) | stat: -rw-r--r-- 1,040 bytes parent folder | download
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