X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/0bc4109776d047ae999f11b3e329d10eb364d561..0e7e3013a96b017ca52b08144c421cf208aeb6ae:/package/openwrt/libnvram/Makefile diff --git a/package/openwrt/libnvram/Makefile b/package/openwrt/libnvram/Makefile index d109a1748..75a1afcd6 100644 --- a/package/openwrt/libnvram/Makefile +++ b/package/openwrt/libnvram/Makefile @@ -1,15 +1,5 @@ -# -# Linux router shared code Makefile -# -# Copyright 2001-2003, Broadcom Corporation -# All Rights Reserved. -# -# THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY -# KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM -# SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS -# FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE. -# # $Id$ + include $(TOPDIR)/rules.mk PKG_NAME:=libnvram @@ -31,8 +21,8 @@ $(foreach obj,$(OBJS),$(eval $(call OBJ_template,$(obj)))) $(PKG_BUILD_DIR): mkdir -p $(PKG_BUILD_DIR) -$(PKG_BUILD_DIR)/nvram: $(PKG_BUILD_DIR)/main.o - $(TARGET_CC) $(TARGET_CFLAGS) -o $@ $^ -L$(PKG_BUILD_DIR) -lnvram +$(PKG_BUILD_DIR)/nvram: $(PKG_BUILD_DIR)/main.o $(PKG_BUILD_DIR)/libnvram.so + $(TARGET_CC) $(TARGET_CFLAGS) -o $@ $< -L$(PKG_BUILD_DIR) -lnvram $(PKG_BUILD_DIR)/libnvram.so: $(LIBNVRAM_OBJS) $(TARGET_CC) -shared -o $@ $^ @@ -44,7 +34,7 @@ $(TARGET_DIR)/usr/lib/libnvram.so: $(PKG_BUILD_DIR)/libnvram.so $(TARGET_DIR)/usr/sbin/nvram: $(PKG_BUILD_DIR)/nvram mkdir -p $(TARGET_DIR)/usr/sbin - install -m 644 $< $@ + install -m 755 $< $@ $(STRIP) $@ compile: $(PKG_BUILD_DIR)/libnvram.so $(PKG_BUILD_DIR)/nvram