X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/27b81cb944011252a48fd92db9112749ceee50a6..0e7e3013a96b017ca52b08144c421cf208aeb6ae:/package/openwrt/libnvram/Makefile diff --git a/package/openwrt/libnvram/Makefile b/package/openwrt/libnvram/Makefile index 5d828b135..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 $@ $^