Changeset 73 in libcf


Ignore:
Timestamp:
04/15/13 14:43:13 (11 years ago)
Author:
cheese
Message:

#1 fix makefile for multi-platform

Location:
trunk
Files:
3 added
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/cf_base.h

    r50 r73  
    33 * @author  myusgun <myusgun@gmail.com>
    44 * @version 0.1
     5 *
     6 * @remarks 기본 정의
     7 *
     8 * @example test.c
    59 *
    610 * @mainpage
  • trunk/include/cf_codec.h

    r66 r73  
    33 * @author  myusgun <myusgun@gmail.com>
    44 *
    5  * @remark
    6  * 데이터 변환 기능 제공
     5 * @remark 데이터 변환
    76 *
    87 * @example codec.c
     
    3332#endif
    3433
    35 #endif // #ifndef __CF_DEBUG_H__
     34#endif // #ifndef __CF_CODEC_H__
  • trunk/include/cf_error.h

    r66 r73  
    22 * @file    cf_error.h
    33 * @author  myusgun <myusgun@gmail.com>
     4 *
     5 * @remarks 오류코드 모음
    46 */
    57#ifndef __CF_ERROR_H__
  • trunk/include/cf_file.h

    r66 r73  
    22 * @file    cf_file.h
    33 * @author  myusgun <myusgun@gmail.com>
     4 *
     5 * @remarks 파일 I/O
    46 *
    57 * @example file.c
  • trunk/include/cf_socket.h

    r66 r73  
    33 * @author  myusgun <myusgun@gmail.com>
    44 *
    5  * @remark TCP 소켓만 지원됨
     5 * @remark TCP 소켓 지원
    66 *
    77 * @example socket_server.c
  • trunk/src/cf_codec.c

    r72 r73  
    2828 * @param hex   16진수 문자열을 저장할 주소
    2929 *
    30  * @remark 16진수 문자열을 저장할 메모리가 미리 할당되어야 하며, 크기는 len * 2 + 1
     30 * @remark
     31 * 16진수 문자열을 저장할 메모리가 미리 할당되어야 하며, <br />
     32 * 크기는 null-character를 포함하여 len * 2 + 1
    3133 */
    3234int
     
    6769 * @param len   바이너리 데이터의 길이를 저장할 주소
    6870 *
    69  * @remark 바이너리 데이터를 저장할 메모리가 미리 할당되어야 하며, 크기는 strlen (hex) / 2
     71 * @remark
     72 * 바이너리 데이터를 저장할 메모리가 미리 할당되어야 하며, <br />
     73 * 크기는 strlen (hex) / 2
    7074 */
    7175int
  • trunk/src/makefile

    r66 r73  
    22# platform
    33#----------------------------------------------------------
    4 PLATFORM    = 64
    5 DEBUG       = true
    6 
    7 #----------------------------------------------------------
    8 # load system info
    9 #----------------------------------------------------------
    10 ifeq ($(PLATFORM), 64)
    11     PLATFORM    = -m64
    12 else
    13     PLATFORM    = -m32
    14 endif
    15 
    16 UNAME_A     := $(shell uname -a)
    17 EXT_SHARED  = so
    18 EXT_STATIC  = a
    19 
    20 ifeq ($(findstring CYGWIN,$(UNAME_A)),CYGWIN)
    21     # forced
    22     PLATFORM    = -m32
    23     EXT_SHARED  = dll
    24     EXT_STATIC  = lib
    25 endif
    26 
    27 ifeq ($(DEBUG), true)
    28     DEFS = -D_DEBUG
    29     FLAG = -g
    30 else
    31     DEFS =
    32     FLAG =
    33 endif
     4include ../makeinclude/userdefine.mk
     5include ../makeinclude/platform.mk
    346
    357#----------------------------------------------------------
     
    4517
    4618TARGET_NAME     = cf
    47 
    48 CC              = gcc
    49 LD              = gcc
    50 AR              = ar
    51 CDEFS           = $(DEFS) -DLINUX -DUNIX -DMTHREAD -D_REENTRANT
    52 CFLAGS          = $(PLATFORM) $(FLAG) -Wall -Wconversion -Wpointer-arith -Wcast-align -fPIC
    53 LDFLAGS         = $(PLATFORM) -Wl,-Bsymbolic
    54 SHARED_FLAGS    = $(LDFLAGS) -shared
    55 ARFLAGS         = rc
    5619
    5720SOURCE_TYPE     = c
  • trunk/test/makefile

    r38 r73  
    22# platform
    33#----------------------------------------------------------
    4 PLATFORM    = 64
    5 DEBUG       = true
    6 
    7 #----------------------------------------------------------
    8 # load system info
    9 #----------------------------------------------------------
    10 ifeq ($(PLATFORM), 64)
    11     PLATFORM    = -m64
    12 else
    13     PLATFORM    = -m32
    14 endif
    15 
    16 UNAME_A     := $(shell uname -a)
    17 EXT_EXECUTE = ex
    18 EXT_SHARED  = so
    19 EXT_STATIC  = a
    20 
    21 ifeq ($(findstring CYGWIN,$(UNAME_A)),CYGWIN)
    22     # forced
    23     PLATFORM    = -m32
    24     EXT_EXECUTE = exe
    25     EXT_SHARED  = dll
    26     EXT_STATIC  = lib
    27 endif
    28 
    29 ifeq ($(DEBUG), true)
    30     DEFS = -D_DEBUG
    31     FLAG = -g
    32 else
    33     DEFS =
    34     FLAG =
    35 endif
     4include ../makeinclude/userdefine.mk
     5include ../makeinclude/platform.mk
    366
    377#----------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.