forked from qca/open-plc-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.def
executable file
·131 lines (102 loc) · 4.34 KB
/
make.def
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#!/usr/bin/make -f
# file: make.def
# ====================================================================
# Atheros Wifi Router Hardware Symbols;
# --------------------------------------------------------------------
# include ../../../../build/scripts/$(BOARD_TYPE)/config.$(BOARD_TYPE)
# ====================================================================
# Atheros Wifi Router Software Symbols;
# --------------------------------------------------------------------
# TOOLPATH=../../../../build/$(TOOLCHAIN)/build_mips/bin
# CROSS=$(TOOLPATH)/mips-linux-
# CROSS_LINUX=$(TOOLPREFIX)
# ====================================================================
# Freescale PL-14/iMX35 Platform Symbols;
# --------------------------------------------------------------------
# ROOTFS=~/ltib/rootfs
# TOOLPATH=/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/
# CROSS=${TOOLPATH}/arm-none-linux-gnueabi-
# CROSS_LINUX=$(TOOLPREFIX)
# ====================================================================
# Freescale PL-16/iMX28 Platform Symbols;
# --------------------------------------------------------------------
# ROOTFS=~/ltib/rootfs
# TOOLPATH=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/
# CROSS=${TOOLPATH}/arm-none-linux-gnueabi-
# CROSS_LINUX=$(TOOLPREFIX)
# ====================================================================
# MIPS/AMiLDA Software Symbols;
# --------------------------------------------------------------------
# CROSS=/export/tools/mipsel-linux-uclibc/bin/mipsel-uclibc-
# CROSS_LINUX=/export/tools/bin/mipsel-linux-
# ====================================================================
# Edimax Gateway Hardware Symbols;
# --------------------------------------------------------------------
# PLATFORM=-D_ADM5120_
# MODEL=-D_6104KP_
# ENDIAN=-D_LITTLE_ENDIAN_
# GATEWAY=y
# ====================================================================
# toolchain;
# --------------------------------------------------------------------
AR=$(CROSS)ar
CAS=$(CROSS)gcc -c
CC=$(CROSS)gcc
CXX=$(CROSS)g++
LD=$(CROSS)ld
RANLIB=$(CROSS)ranlib
STRIP=$(CROSS)strip
# ====================================================================
# installation folders;
# --------------------------------------------------------------------
ROOTFS?=
BIN=${ROOTFS}/usr/local/bin
MAN=${ROOTFS}/usr/local/man/man1
DOC=${ROOTFS}/home/www/software
WWW=${ROOTFS}/home/www
FTP=${ROOTFS}/home/ftp
# ====================================================================
# file ownership;
# --------------------------------------------------------------------
OWNER=0
GROUP=0
# ====================================================================
# file permissions;
# --------------------------------------------------------------------
DIR_PERM=0755
MAN_PERM=0444
BIN_PERM=0555
WWW_PERM=0666
# Setting binaries as setuid root is just one way to obtain the required
# permissions to open raw sockets.
#
# There are other methods to obtain the appropriate permissions:
#
# OpenBSD/Mac OS X:
# Change the /dev/bpfN files to have read/write
# permission for the desired users.
#
# Linux 2.2+:
# Set the permissions on the binaries to allow raw
# socket access:
#
# $ sudo setcap cap_net_raw=eip /path/to/binary
#
# If either of the above methods are used, the SUID_PERM below can
# be set to 0555, which is more secure.
SUID_PERM=4555
# ====================================================================
# search folders;
# --------------------------------------------------------------------
VPATH=../applets:../debian:../docbook:../docbook2:../ether:../key:../mdio:../mme:../nda:../nodes:../nvm:../patches:../pib:../plc:../qca:../ram:../scripts:../serial:../support:../tools
# ====================================================================
# types and targets;
# --------------------------------------------------------------------
.SUFFIXES: .o .c .h .cpp .hpp
.PHONY: all compile compact install scripts manuals uninstall library check fresh clean
# ====================================================================
# default compiler and linker flags;
# --------------------------------------------------------------------
CFLAGS=-Wall -Wextra -Wno-unused-parameter -DMAKEFILE -D__GETOPT_H__ -D_GETOPT_DEFINED_ $(EXTRA_CFLAGS)
CXXFLAGS=-Wall -Wextra -Wno-unused-parameter -DMAKEFILE $(EXTRA_CXXFLAGS)
LDFLAGS=$(EXTRA_LDFLAGS)