diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-08-04 22:46:26 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-08-04 22:46:26 +0000 |
commit | 15e763916815fdf1f76386a8e5090a849d2310a1 (patch) | |
tree | f24b4d817775057cc257910b21b3da49689e8ed8 /contrib/bitlib/Makefile | |
parent | 9a3d3b2787d65c547a8544c8e8e12c1290ee9cf0 (diff) |
* luci/contrib: fix bitlib compilation
Diffstat (limited to 'contrib/bitlib/Makefile')
-rw-r--r-- | contrib/bitlib/Makefile | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/contrib/bitlib/Makefile b/contrib/bitlib/Makefile index 384414b5d..6b7c82483 100644 --- a/contrib/bitlib/Makefile +++ b/contrib/bitlib/Makefile @@ -17,16 +17,13 @@ $(BITLIB_FILE): $(BITLIB_DIR)/.prepared: $(BITLIB_FILE) rm -rf $(BITLIB_DIR) tar xvfz $(BITLIB_FILE) + test -f $(BITLIB_DIR)/config.h || cp $(BITLIB_DIR)/config.h.in $(BITLIB_DIR)/config.h touch $@ -$(BITLIB_DIR)/.configured: $(BITLIB_DIR)/.prepared - ( cd $(BITLIB_DIR); ./configure ) - touch $@ - -compile: $(BITLIB_DIR)/.configured - $(MAKE) -C $(BITLIB_DIR) CC=$(CC) CFLAGS="$(CFLAGS) $(LUA_CFLAGS)" LDFLAGS="$(LDFLAGS) $(LUA_SHLIBS)" OS="$(OS)" +compile: $(BITLIB_DIR)/.prepared mkdir -p dist$(LUA_LIBRARYDIR) - cp $(BITLIB_DIR)/.libs/bit.so.0.0.0 dist$(LUA_LIBRARYDIR)/bit.so + $(COMPILE) -DHAVE_CONFIG_H -I$(BITLIB_DIR) -O2 -c $(BITLIB_DIR)/lbitlib.c $(FPIC) $(LUA_CFLAGS) -o $(BITLIB_DIR)/lbitlib.o + $(LINK) $(SHLIB_FLAGS) $(LDFLAGS) $(BITLIB_DIR)/lbitlib.o $(LUA_SHLIBS) -lm -ldl -o dist$(LUA_LIBRARYDIR)/bit.so luasource: luastrip: |