diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-07-05 15:33:08 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-07-05 15:33:08 +0000 |
commit | d755a5ac58b8401255eb3a2e7b00e902bc06ad1d (patch) | |
tree | dfcbe89f139dbe54ae1e9e37176c78ab6df68a0e /apps/plugins/lua/lua.make | |
parent | 9b1c774218e59fbcb7160709687686275ee04c13 (diff) | |
download | rockbox-d755a5ac58b8401255eb3a2e7b00e902bc06ad1d.tar.gz rockbox-d755a5ac58b8401255eb3a2e7b00e902bc06ad1d.zip |
Lua: add script which wraps not-yet ported C functions to Lua
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21657 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lua/lua.make')
-rw-r--r-- | apps/plugins/lua/lua.make | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/plugins/lua/lua.make b/apps/plugins/lua/lua.make index 1232ddf043..7272118bcb 100644 --- a/apps/plugins/lua/lua.make +++ b/apps/plugins/lua/lua.make | |||
@@ -30,15 +30,21 @@ else | |||
30 | ROCKS += $(LUA_BUILDDIR)/lua.rock | 30 | ROCKS += $(LUA_BUILDDIR)/lua.rock |
31 | endif | 31 | endif |
32 | 32 | ||
33 | $(LUA_BUILDDIR)/lua.rock: $(LUA_OBJ) $(LUA_BUILDDIR)/actions.lua $(LUA_BUILDDIR)/buttons.lua | 33 | $(LUA_BUILDDIR)/lua.rock: $(LUA_OBJ) $(LUA_BUILDDIR)/actions.lua $(LUA_BUILDDIR)/buttons.lua $(LUA_BUILDDIR)/rocklib_aux.o |
34 | 34 | ||
35 | $(LUA_BUILDDIR)/actions.lua: $(LUA_OBJ) | 35 | $(LUA_BUILDDIR)/actions.lua: |
36 | $(call PRINTS,GEN $(@F))$(CC) $(INCLUDES) -E $(APPSDIR)/action.h | $(LUA_SRCDIR)/action_helper.pl > $(LUA_BUILDDIR)/actions.lua | 36 | $(call PRINTS,GEN $(@F))$(CC) $(INCLUDES) -E $(APPSDIR)/action.h | $(LUA_SRCDIR)/action_helper.pl > $(LUA_BUILDDIR)/actions.lua |
37 | 37 | ||
38 | $(LUA_BUILDDIR)/buttons.lua: $(LUA_OBJ) | 38 | $(LUA_BUILDDIR)/buttons.lua: |
39 | $(SILENT)$(CC) $(INCLUDES) -dM -E -include button-target.h - < /dev/null | $(LUA_SRCDIR)/button_helper.pl | $(HOSTCC) -fno-builtin $(INCLUDES) -x c -o $(LUA_BUILDDIR)/button_helper - | 39 | $(SILENT)$(CC) $(INCLUDES) -dM -E -include button-target.h - < /dev/null | $(LUA_SRCDIR)/button_helper.pl | $(HOSTCC) -fno-builtin $(INCLUDES) -x c -o $(LUA_BUILDDIR)/button_helper - |
40 | $(call PRINTS,GEN $(@F))$(LUA_BUILDDIR)/button_helper > $(LUA_BUILDDIR)/buttons.lua | 40 | $(call PRINTS,GEN $(@F))$(LUA_BUILDDIR)/button_helper > $(LUA_BUILDDIR)/buttons.lua |
41 | 41 | ||
42 | $(LUA_BUILDDIR)/rocklib_aux.c: $(APPSDIR)/plugin.h | ||
43 | $(call PRINTS,GEN $(@F))$(CC) $(CFLAGS) $(INCLUDES) -E -include plugin.h - < /dev/null | $(LUA_SRCDIR)/rocklib_aux.pl $(LUA_SRCDIR) > $(LUA_BUILDDIR)/rocklib_aux.c | ||
44 | |||
45 | $(LUA_BUILDDIR)/rocklib_aux.o: $(LUA_BUILDDIR)/rocklib_aux.c | ||
46 | $(call PRINTS,CC $(<F))$(CC) $(INCLUDES) -I $(LUA_SRCDIR) $(CFLAGS) -c $< -o $@ | ||
47 | |||
42 | $(LUA_BUILDDIR)/lua.refmap: $(LUA_OBJ) | 48 | $(LUA_BUILDDIR)/lua.refmap: $(LUA_OBJ) |
43 | 49 | ||
44 | $(LUA_OUTLDS): $(PLUGIN_LDS) $(LUA_BUILDDIR)/lua.refmap | 50 | $(LUA_OUTLDS): $(PLUGIN_LDS) $(LUA_BUILDDIR)/lua.refmap |