rules.sample 753 Bytes
Newer Older
Vincent Wei's avatar
Vincent Wei committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# an sample of the makefile.ng rules 

# set your own targaet_os
TARGET_OS=your_target_os

##################################################
# set your compile tool #
CC=gcc
CXX=g++
CPP=g++
AR=ar
AS=as
RANLIB=ranlib
MAKE=/usr/bin/make
##################################################

ARFLAGS=-rc
COFLAG=-c

OBJ=o
LIBA=a

##################################################
# if you don't want to create dynamic, delete it # 
LIBSO=so
SOFLAGS=-fPIC -shared -o
##################################################


##################################################
# set your compile flags and install prefix path # 
PREFIX=/usr/local
CFLAGS+=-g -Wall
CXXFLAGS+=-g -Wall
CPPFLAGS+=-g -Wall
LDFLAGS+=
##################################################