Skip to content

Commit cc05b87

Browse files
committed
first commit acl to github
first commit acl to github
1 parent c11442e commit cc05b87

File tree

2,899 files changed

+569599
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,899 files changed

+569599
-0
lines changed

Doxyfile

+1,844
Large diffs are not rendered by default.

Doxyfile_acl_protocol

+1,754
Large diffs are not rendered by default.

Makefile

+184
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
SHELL = /bin/sh
2+
OSNAME = $(shell uname -sm)
3+
OSTYPE = $(shell uname -p)
4+
5+
LIB_PATH = ./dist/lib
6+
ACL_LIB = $(LIB_PATH)
7+
PROTO_LIB = $(LIB_PATH)
8+
DICT_LIB = $(LIB_PATH)
9+
TLS_LIB = $(LIB_PATH)
10+
11+
INC_PATH = ./dist/include
12+
ACL_INC = $(INC_PATH)/acl
13+
PROTO_INC = $(INC_PATH)/protocol
14+
DICT_INC = $(INC_PATH)/dict
15+
TLS_INC = $(INC_PATH)/tls
16+
17+
RPATH =
18+
DATE_NOW = 20`date +%y`.`date +%m`.`date +%d`
19+
MAKE_ARGS =
20+
21+
ifeq ($(findstring FreeBSD, $(OSNAME)), FreeBSD)
22+
RPATH = freebsd
23+
endif
24+
25+
ifeq ($(findstring Linux, $(OSNAME)), Linux)
26+
ifeq ($(findstring i686, $(OSTYPE)), i686)
27+
RPATH = linux32
28+
endif
29+
ifeq ($(findstring x86_64, $(OSTYPE)), x86_64)
30+
RPATH = linux64
31+
endif
32+
n = `cat /proc/cpuinfo | grep processor | wc -l`
33+
MAKE_ARGS = -j $(n)
34+
endif
35+
ifeq ($(findstring SunOS, $(OSNAME)), SunOS)
36+
ifeq ($(findstring i386, $(OSTYPE)), i386)
37+
RPATH = sunos_x86
38+
endif
39+
endif
40+
##############################################################################
41+
42+
.PHONY = check help all clean install uninstall uninstall_all build_bin build_src
43+
VERSION = 2.1.2.8
44+
45+
help:
46+
@(echo "usage: make help|all|clean|install|uninstall|uninstall_all|build_bin|build_src")
47+
all:
48+
@(cd lib_acl; make $(MAKE_ARGS))
49+
@(cd lib_protocol; make $(MAKE_ARGS))
50+
@(cd lib_acl_cpp; make $(MAKE_ARGS))
51+
@(cd lib_rpc; make $(MAKE_ARGS))
52+
@(cd unit_test; make $(MAKE_ARGS))
53+
@(cd samples; make)
54+
# @(cd lib_dict; make $(MAKE_ARGS))
55+
# @(cd lib_tls; make $(MAKE_ARGS))
56+
clean:
57+
@(cd lib_acl; make clean)
58+
@(cd lib_protocol; make clean)
59+
@(cd lib_acl_cpp; make clean)
60+
@(cd lib_rpc; make clean)
61+
@(cd unit_test; make clean)
62+
@(cd samples; make clean)
63+
# @(cd lib_dict; make clean)
64+
# @(cd lib_tls; make clean)
65+
66+
install:
67+
@(echo "")
68+
@(echo "begin copy file...")
69+
cp -f lib_acl/master/acl_master ./dist/master/libexec/$(RPATH)/
70+
cp -f lib_acl/lib/lib_acl.a $(ACL_LIB)/$(RPATH)/
71+
cp -Rf lib_acl/include/* $(ACL_INC)/
72+
cp -f lib_protocol/lib/lib_protocol.a $(PROTO_LIB)/$(RPATH)/
73+
cp -Rf lib_protocol/include/* $(PROTO_INC)/
74+
cp -f lib_acl_cpp/lib/lib_acl_cpp.a $(ACL_LIB)/$(RPATH)/
75+
cp -Rf lib_acl_cpp/include/acl_cpp/* $(INC_PATH)/acl_cpp/
76+
# cp -f lib_dict/lib/lib_dict.a $(DICT_LIB)/$(RPATH)/
77+
# cp -Rf lib_dict/include/* $(DICT_INC)/
78+
# cp -f lib_tls/lib/lib_tls.a $(TLS_LIB)/$(RPATH)/
79+
# cp -Rf lib_tls/include/* $(TLS_INC)/
80+
uninstall:
81+
@(echo "")
82+
@(echo "begin remove file...")
83+
rm -f ./dist/master/libexec/$(RPATH)/*
84+
rm -f $(ACL_LIB)/$(RPATH)/lib_acl.a
85+
rm -Rf $(ACL_INC)/*
86+
rm -f $(PROTO_LIB)/$(RPATH)/lib_protocol.a
87+
rm -Rf $(PROTO_INC)/*
88+
rm -f $(ACL_LIB)/$(RPATH)/lib_acl_cpp.a
89+
rm -Rf $(INC_PATH)/acl_cpp/*
90+
rm -f $(DICT_LIB)/$(RPATH)/lib_dict.a
91+
rm -Rf $(DICT_INC)/*
92+
rm -f $(TLS_LIB)/$(RPATH)/lib_tls.a
93+
rm -Rf $(TLS_INC)/*
94+
uninstall_all:
95+
@(echo "")
96+
@(echo "begin remove all dist files ...")
97+
rm -Rf $(ACL_INC)/*
98+
rm -Rf $(PROTO_INC)/*
99+
rm -Rf $(DICT_INC)/*
100+
rm -Rf $(TLS_INC)/*
101+
rm -f ./dist/master/libexec/linux32/*
102+
rm -f ./dist/master/libexec/linux64/*
103+
rm -f ./dist/master/libexec/sunos_x86/*
104+
rm -f ./dist/master/libexec/freebsd/*
105+
rm -f $(ACL_LIB)/linux32/*.a
106+
rm -f $(ACL_LIB)/linux64/*.a
107+
rm -f $(ACL_LIB)/sunos_x86/*.a
108+
rm -f $(ACL_LIB)/freebsd/*.a
109+
rm -f $(ACL_LIB)/win32/*.lib
110+
rm -f $(ACL_LIB)/win32/*.dll
111+
rm -f $(PROTO_LIB)/linux32/*.a
112+
rm -f $(PROTO_LIB)/linux64/*.a
113+
rm -f $(PROTO_LIB)/sunos_x86/*.a
114+
rm -f $(PROTO_LIB)/freebsd/*.a
115+
rm -f $(PROTO_LIB)/win32/*.lib
116+
rm -f $(PROTO_LIB)/win32/*.dll
117+
rm -f $(DICT_LIB)/linux32/*.a
118+
rm -f $(DICT_LIB)/linux64/*.a
119+
rm -f $(DICT_LIB)/sunos_x86/*.a
120+
rm -f $(DICT_LIB)/freebsd/*.a
121+
rm -f $(DICT_LIB)/win32/*.lib
122+
rm -f $(DICT_LIB)/win32/*.dll
123+
rm -f $(TLS_LIB)/linux32/*.a
124+
rm -f $(TLS_LIB)/linux64/*.a
125+
rm -f $(TLS_LIB)/sunos_x86/*.a
126+
rm -f $(TLS_LIB)/freebsd/*.a
127+
rm -f $(TLS_LIB)/win32/*.lib
128+
rm -f $(TLS_LIB)/win32/*.dll
129+
rm -f win32_build/vc/lib_acl/*.map
130+
rm -f win32_build/vc/lib_acl/*.ilk
131+
rm -f win32_build/vc/lib_protocol/*.map
132+
rm -f win32_build/vc/lib_protocol/*.ilk
133+
build_bin:
134+
@(echo "please waiting ...")
135+
@(echo "begin building bin release...")
136+
@(rm -rf acl.bin)
137+
@(echo "copy files ...")
138+
@(cp -R dist acl.bin)
139+
@(cp lib_acl/changes.txt acl.bin/include/acl/)
140+
@(cp lib_protocol/changes.txt acl.bin/include/protocol/)
141+
@(cp lib_dict/changes.txt acl.bin/include/dict/)
142+
@(cp lib_tls/changes.txt acl.bin/include/tls/)
143+
@(cp changes.txt acl.bin/)
144+
@(echo "make tar package ...")
145+
@(tar -cf acl.bin.tar acl.bin)
146+
@(echo "make gzip package ...")
147+
@(gzip -c acl.bin.tar > acl.bin.tgz)
148+
@(rm acl.bin.tar)
149+
@(rm -rf acl.bin)
150+
@(echo "move acl.bin.tgz to ../acl$(VERSION).bin.$(DATE_NOW).tgz")
151+
@(mv acl.bin.tgz ../acl$(VERSION).bin.$(DATE_NOW).tgz)
152+
# @(echo "move acl.bin.tgz to ../acl$(VERSION).bin.tgz")
153+
# @(mv acl.bin.tgz ../acl$(VERSION).bin.tgz)
154+
build_src: clean uninstall_all
155+
@(echo "begin building src release...")
156+
@(rm -rf acl)
157+
@(echo "copy files ...")
158+
@(mkdir acl)
159+
@(cp -R dist acl/)
160+
@(cp -R lib_acl acl/)
161+
@(cp -R lib_protocol acl/)
162+
@(cp -R lib_dict acl/)
163+
@(cp -R lib_tls acl/)
164+
@(cp -R samples acl/)
165+
@(cp -R unit_test acl/)
166+
@(cp -R win32_build acl/)
167+
@(cp -R lib acl/)
168+
@(cp -R doc acl/)
169+
@(cp Makefile acl/)
170+
@(cp changes.txt acl/)
171+
@(cp readme.txt acl/)
172+
@(cp Doxyfile acl/)
173+
@(echo "make tar package ...")
174+
@(tar -cf acl.src.tar acl)
175+
@(echo "make gzip package ...")
176+
@(gzip -c acl.src.tar > acl.src.tgz)
177+
@(rm acl.src.tar)
178+
@(rm -rf acl)
179+
@(echo "move acl.src.tgz to ../acl$(VERSION).src.$(DATE_NOW).tgz")
180+
@(mv acl.src.tgz ../acl$(VERSION).src.$(DATE_NOW).tgz)
181+
# @(echo "move acl.src.tgz to ../acl$(VERSION).src.tgz")
182+
# @(mv acl.src.tgz ../acl$(VERSION).src.tgz)
183+
check:
184+
echo "TYPE=$(OSTYPE), OSNAME=$(OSNAME), RPATH=$(RPATH)"

0 commit comments

Comments
 (0)