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