2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://luaforge.net
/frs
/download.php
/3400
16 PKG_MD5SUM
:=611435c8e61e1a330ee0aa8ddc9c124a
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/luaprofiler
25 URL
:=http
://luaprofiler.luaforge.net
29 define Package
/luaprofiler
/description
30 Profile any Lua application
33 define Build
/Configure
37 TARGET_CFLAGS
+= $(FPIC
) $(TARGET_CPPFLAGS
)
39 TARGET_LDFLAGS
+= -llua
42 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
43 $(TARGET_CONFIGURE_OPTS
) \
44 CFLAGS
="$(TARGET_CFLAGS) -std=gnu99" \
45 LDFLAGS
="$(TARGET_LDFLAGS)" \
49 define Package
/luaprofiler
/install
50 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
51 $(CP
) $(PKG_BUILD_DIR
)/bin
/profiler.so
$(1)/usr
/lib
/lua
/
54 $(eval
$(call BuildPackage
,luaprofiler
))