unmangle Makefile

git-svn-id: svn://svn.openwrt.org/openwrt/packages@20381 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
thepeople
2010-03-23 02:15:00 +00:00
parent a1fdf99a3c
commit d27ce7fe4b

View File

@ -33,13 +33,12 @@ define Build/Configure
endef endef
TARGET_CFLAGS += $(FPIC) TARGET_CFLAGS += $(FPIC)
LOWFAT_MAKEOPTS = \ LOWFAT_MAKEOPTS = $(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_OPTS) \ COPTS="$(TARGET_CFLAGS)" \
COPTS="$(TARGET_CFLAGS)" \ DEBUG="$(DEBUG)" \
DEBUG="$(DEBUG)" \ VERSION="$(LOWFAT_VERSION)" \
VERSION="$(LOWFAT_VERSION)" \ CPPFLAGS="-I$(PKG_BUILD_DIR) -I$(STAGING_DIR)/usr/include" \
CPPFLAGS="-I$(PKG_BUILD_DIR) -I$(STAGING_DIR)/usr/include" \ OS="Linux"
OS="Linux"
# work around a nasty gcc bug # work around a nasty gcc bug
ifneq ($(CONFIG_GCC_VERSION_4_2_4),) ifneq ($(CONFIG_GCC_VERSION_4_2_4),)
@ -47,14 +46,14 @@ ifneq ($(CONFIG_GCC_VERSION_4_2_4),)
endif endif
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) $(LOWFAT_MAKEOPTS) $(MAKE) -C $(PKG_BUILD_DIR) $(LOWFAT_MAKEOPTS)
endef endef
define Build/InstallDev define Build/InstallDev
mkdir -p $(1)/usr/include/libowfat mkdir -p $(1)/usr/include/libowfat
$(CP) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/libowfat $(CP) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/libowfat
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/*.a $(1)/usr/lib $(CP) $(PKG_BUILD_DIR)/*.a $(1)/usr/lib
endef endef
$(eval $(call BuildPackage,libowfat)) $(eval $(call BuildPackage,libowfat))