Changeset 5355


Ignore:
Timestamp:
2006-10-31T12:29:54+01:00 (10 years ago)
Author:
nico
Message:

move libnotimpl to /packages/libs, fix another typo in ./src/math.c

Location:
packages/libs/libnotimpl
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • packages/libs/libnotimpl/Makefile

    r4866 r5355  
    55# See /LICENSE for more information. 
    66# 
     7# $Id$ 
     8 
    79include $(TOPDIR)/rules.mk 
    810 
    911PKG_NAME:=libnotimpl 
    1012 
    11 PKG_BUILD_DIR:=$(TOOLCHAIN_BUILD_DIR)/libnotimpl 
     13PKG_BUILD_DIR:=$(BUILD_DIR)/libnotimpl 
    1214 
    13 include $(INCLUDE_DIR)/host-build.mk 
     15include $(INCLUDE_DIR)/package.mk 
     16 
     17define Package/libnotimpl 
     18  SECTION:=libs 
     19  CATEGORY:=Libraries 
     20  TITLE:=Implements functions missing from uClibc 
     21endef 
    1422 
    1523define cc 
    16         $(TARGET_CC) $(TARGET_CFLAGS) -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o 
     24        $(TARGET_CC) $(TARGET_CFLAGS) -Wall -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o 
    1725endef 
    1826 
     
    2735endef 
    2836 
    29 define Build/Install 
     37define Build/InstallDev 
    3038        mkdir -p $(STAGING_DIR)/usr/lib 
    3139        $(CP) $(PKG_BUILD_DIR)/libnotimpl.a $(STAGING_DIR)/usr/lib/ 
    3240endef 
    3341 
    34 define Build/Clean 
     42define Build/UninstallDev 
    3543        rm -f $(STAGING_DIR)/usr/lib/libnotimpl.a 
    3644endef 
    3745 
    38 $(eval $(call HostBuild)) 
    39  
     46$(eval $(call Build/DefaultTargets)) 
  • packages/libs/libnotimpl/src/math.c

    r4941 r5355  
    11/* vi: set sw=4 ts=4: */ 
    22 
    3 #include "math.h" 
     3#include <math.h> 
    44 
    55 
     
    6464#endif 
    6565{ 
    66         return (float) sin( (double)x ); 
     66        return (float) rint( (double)x ); 
    6767} 
    6868 
Note: See TracChangeset for help on using the changeset viewer.