-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
418 lines (385 loc) · 22.8 KB
/
Makefile
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
CC=g++
AS=as
AR=ar
LD=ld
# Learn something from /lib/modules/6.1.29-0-lts/build/Makefile
define add_module
endef
define del_module
endef
define config
endef
PLATFORM_ARCH = $(shell uname -s)
PLATFORM_ARCH_LINUX = Linux
PLATFORM_ARCH_DARWIN = Darwin
PLATFORM_ARCH_FREEBSD = FreeBSD
MK_FALSE = 0
MK_TRUE = 1
# 输出类型配置
TARGET_TYPE_BIN = $(MK_TRUE)
TARGET_TYPE_LIB = $(MK_FALSE)
TARGET_TYPE_DLL = $(MK_FALSE)
# ** 项目配置区 **
#
# 输出文件名称
TARGET_NAME = mit
# 输出文件后缀 [自动判别]
TARGET_BIN_EXT =
TARGET_LIB_EXT_STATIC =
TARGET_LIB_EXT_DYNAMIC =
# 安装位置
INSTALL_PATH_PREFIX = /Applications/mit
TARGET_VERSION = 1.0.0
#INSTALL_PATH_PREFIX = /usr/local
TARGET_INC_DIR := ./inc
TARGET_BIN_DIR := ./bin
TARGET_LIB_DIR := ./lib
PROJECT_ROOT = .
PROJECT_DIR_BESIDES = \(
PROJECT_DIR_BESIDES += -path ./.git
PROJECT_DIR_BESIDES += -o -path ./libcpp
PROJECT_DIR_BESIDES += -o -path ./libstring
PROJECT_DIR_BESIDES += -o -path ./liburl
PROJECT_DIR_BESIDES += -o -path ./libstream
PROJECT_DIR_BESIDES += -o -path ./libast
PROJECT_DIR_BESIDES += -o -path ./libecho
PROJECT_DIR_BESIDES += -o -path ./libmodel
PROJECT_DIR_BESIDES += -o -path ./libmodule
PROJECT_DIR_BESIDES += -o -path ./libevent
PROJECT_DIR_BESIDES += -o -path ./libfsevent
PROJECT_DIR_BESIDES += -o -path ./libioevent
PROJECT_DIR_BESIDES += -o -path ./libvm
PROJECT_DIR_BESIDES += -o -path ./libes
PROJECT_DIR_BESIDES += -o -path ./libarguments
PROJECT_DIR_BESIDES += -o -path ./libmit
PROJECT_DIR_BESIDES += -o -path ./libraries
PROJECT_DIR_BESIDES += -o -path ./modules
PROJECT_DIR_BESIDES += -o -path ./obj
PROJECT_DIR_BESIDES += -o -path ./bin
PROJECT_DIR_BESIDES += -o -path ./lib
PROJECT_DIR_BESIDES += -o -path ./man
PROJECT_DIR_BESIDES += -o -path ./.trash
PROJECT_DIR_BESIDES += \)
PROJECT_DIRS = $(shell find $(PROJECT_ROOT) $(PROJECT_DIR_BESIDES) -prune -o -type d -print) #maxdepth
TARGET_HEADERS = $(foreach dir,$(PROJECT_DIRS),$(wildcard $(dir)/*.h))
TARGET_SOURCES_AS += $(foreach dir,$(PROJECT_DIRS),$(wildcard $(dir)/*.s))
TARGET_OBJECTS_AS += $(patsubst %.s,%.o,$(TARGET_SOURCES_AS))
TARGET_SOURCES_CC += $(foreach dir,$(PROJECT_DIRS),$(wildcard $(dir)/*.c))
TARGET_OBJECTS_CC += $(patsubst %.c,%.o,$(TARGET_SOURCES_CC)) # $(patsubst %.cpp,${TARGET_OBJECTS_DIR}/%.o,$(notdir ${TARGET_SOURCES}))
TARGET_SOURCES_PP += $(foreach dir,$(PROJECT_DIRS),$(wildcard $(dir)/*.cpp))
TARGET_OBJECTS_PP += $(patsubst %.cpp,%.o,$(TARGET_SOURCES_PP))
TARGET_HEADER_DIRS += $(foreach dir,$(PROJECT_DIRS),-I$(dir)) # $(wildcard $(TARGET_HEADERS_DIR)/*.h)
# 链接库配置
TARGET_LD_FLAGS = -L ./lib -Wl,-rpath=${INSTALL_PATH_PREFIX}/versions/${TARGET_VERSION}/lib
# 需要链接的库 -lstring -lurl
TARGET_LIBS = -lelf -larguments -lioevent -lfsevent -levent -lmit -lecho -les -last -lvm -lmodule -lmodel -lstream -lurl -lstring -lcpp -lstdc++ -lc
ASFLAGS =
CCFLAGS = -c -fPIC -Wall -fvisibility=hidden -std=c++11 -I ./inc
PPFLAGS = -c -fPIC -Wall -fvisibility=hidden -std=c++11 -I ./inc
#OPENSSL=
ifdef OPENSSL
OPENSSL_INCLUDE_PATH = ${OPENSSL}/include
OPENSSL_LIBRARY_PATH = ${OPENSSL}/lib
TARGET_LD_FLAGS += -L ${OPENSSL_LIBRARY_PATH}
TARGET_LIBS += -ltls
CCFLAGS += -I ${OPENSSL_INCLUDE_PATH}
PPFLAGS += -I ${OPENSSL_INCLUDE_PATH}
CCFLAGS += -DOPENSSL
PPFLAGS += -DOPENSSL
endif
# 平台检测 -- DARWIN
ifeq (${PLATFORM_ARCH},${PLATFORM_ARCH_DARWIN})
TARGET_BIN_EXT :=
TARGET_LIB_EXT_STATIC := a
TARGET_LIB_EXT_DYNAMIC := so
endif
# 平台检测 -- LINUX
ifeq (${PLATFORM_ARCH},${PLATFORM_ARCH_LINUX})
TARGET_BIN_EXT :=
TARGET_LIB_EXT_STATIC := a
CTARGET_LIB_EXT_DYNAMIC := so
endif
# 平台检测 -- FreeBSD
ifeq (${PLATFORM_ARCH},${PLATFORM_ARCH_FreeBSD})
TARGET_BIN_EXT :=
TARGET_LIB_EXT_STATIC := a
TARGET_LIB_EXT_DYNAMIC := so
endif
TARGETS =
MAKE_FILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
MAKE_FILE_DIR := $(dir $(MAKE_FILE_PATH))
export SUPER_LIBRARY_ROOT = $(MAKE_FILE_DIR)libraries
export SUPER_INCLUDE_PATH = $(MAKE_FILE_DIR)inc
export SUPER_LIBRARY_PATH = $(MAKE_FILE_DIR)lib
export SUPER_RUNTIME_PATH = $(INSTALL_PATH_PREFIX)
ifeq ($(TARGET_TYPE_LIB),$(MK_TRUE))
TARGETS += ${TARGET_LIB_DIR}/${TARGET_NAME}.${TARGET_LIB_EXT_STATIC}
endif
ifeq ($(TARGET_TYPE_DLL),$(MK_TRUE))
TARGETS += ${TARGET_LIB_DIR}/${TARGET_NAME}.${TARGET_LIB_EXT_DYNAMIC}
endif
ifeq ($(TARGET_TYPE_BIN),$(MK_TRUE))
TARGETS += ${TARGET_BIN_DIR}/${TARGET_NAME}
endif
ALL : $(TARGETS)
${TARGET_BIN_DIR}/${TARGET_NAME}: $(TARGET_OBJECTS_PP) $(TARGET_OBJECTS_CC) $(TARGET_OBJECTS_AS)
$(CC) -fPIE -o $@ $^ -static $(TARGET_LIBS) ${TARGET_LD_FLAGS}
$(TARGET_OBJECTS_AS):%.o:%.s
$(AS) ${ASFLAGS} $< -o $@
$(TARGET_OBJECTS_CC):%.o:%.c
$(CC) ${CCFLAGS} $< -o $@
$(TARGET_OBJECTS_PP):%.o:%.cpp
$(CC) ${PPFLAGS} $< -o $@
submodule:
rm -rf ./inc/*
rm -rf ./lib/*
-mkdir ./inc/modules
-mkdir ./lib/modules
-cd ./libraries/libcpp && $(MAKE) && cd ../.. && cp -rf ./libraries/libcpp/lib/* ./lib && mkdir inc/libcpp && cp -rf ./libraries/libcpp/src/*.h ./inc/libcpp
-cd ./libraries/libmm && $(MAKE) && cd ../.. && cp -rf ./libraries/libmm/lib/* ./lib && mkdir inc/libmm && cp -rf ./libraries/libmm/src/*.h ./inc/libmm
-cd ./libraries/libstring && $(MAKE) && cd ../.. && cp -rf ./libraries/libstring/lib/* ./lib && mkdir inc/libstring && cp -rf ./libraries/libstring/src/*.h ./inc/libstring
-cd ./libraries/liburl && $(MAKE) && cd ../.. && cp -rf ./libraries/liburl/lib/* ./lib && mkdir inc/liburl && cp -rf ./libraries/liburl/src/*.h ./inc/liburl
-cd ./libraries/libmatch && $(MAKE) && cd ../.. && cp -rf ./libraries/libmatch/lib/* ./lib && mkdir inc/libmatch && cp -rf ./libraries/libmatch/src/*.h ./inc/libmatch
-cd ./libraries/libelf && $(MAKE) && cd ../.. && cp -rf ./libraries/libelf/lib/* ./lib && mkdir inc/libelf && cp -rf ./libraries/libelf/src/*.h ./inc/libelf
-cd ./libraries/libhttp && $(MAKE) && cd ../.. && cp -rf ./libraries/libhttp/lib/* ./lib && mkdir inc/libhttp && cp -rf ./libraries/libhttp/src/*.h ./inc/libhttp
-cd ./libraries/libstream && $(MAKE) && cd ../.. && cp -rf ./libraries/libstream/lib/* ./lib && mkdir inc/libstream && cp -rf ./libraries/libstream/src/*.h ./inc/libstream
-cd ./libraries/libmodel && $(MAKE) && cd ../.. && cp -rf ./libraries/libmodel/lib/* ./lib && mkdir inc/libmodel && cp -rf ./libraries/libmodel/src/*.h ./inc/libmodel
-cd ./libraries/libmodule && $(MAKE) && cd ../.. && cp -rf ./libraries/libmodule/lib/* ./lib && mkdir inc/libmodule && cp -rf ./libraries/libmodule/src/*.h ./inc/libmodule
-cd ./libraries/libast && $(MAKE) && cd ../.. && cp -rf ./libraries/libast/lib/* ./lib && mkdir inc/libast && cp -rf ./libraries/libast/src/*.h ./inc/libast
-cd ./libraries/libkernel && $(MAKE) && cd ../.. && cp -rf ./libraries/libkernel/lib/* ./lib && mkdir inc/libkernel && cp -rf ./libraries/libkernel/src/*.h ./inc/libkernel
-cd ./libraries/libsystem && $(MAKE) && cd ../.. && cp -rf ./libraries/libsystem/lib/* ./lib && mkdir inc/libsystem && cp -rf ./libraries/libsystem/src/*.h ./inc/libsystem
-cd ./libraries/libecho && $(MAKE) && cd ../.. && cp -rf ./libraries/libecho/lib/* ./lib && mkdir inc/libecho && cp -rf ./libraries/libecho/src/*.h ./inc/libecho
-cd ./libraries/libevent && $(MAKE) && cd ../.. && cp -rf ./libraries/libevent/lib/* ./lib && mkdir inc/libevent && cp -rf ./libraries/libevent/src/*.h ./inc/libevent
-cd ./libraries/libioevent && $(MAKE) && cd ../.. && cp -rf ./libraries/libioevent/lib/* ./lib && mkdir inc/libioevent && cp -rf ./libraries/libioevent/src/*.h ./inc/libioevent
-cd ./libraries/libfsevent && $(MAKE) && cd ../.. && cp -rf ./libraries/libfsevent/lib/* ./lib && mkdir inc/libfsevent && cp -rf ./libraries/libfsevent/src/*.h ./inc/libfsevent
-cd ./libraries/libipc && $(MAKE) && cd ../.. && cp -rf ./libraries/libipc/lib/* ./lib && mkdir inc/libipc && cp -rf ./libraries/libipc/src/*.h ./inc/libipc
-cd ./libraries/libvm && $(MAKE) && cd ../.. && cp -rf ./libraries/libvm/lib/* ./lib && mkdir inc/libvm && cp -rf ./libraries/libvm/src/*.h ./inc/libvm
-cd ./libraries/libvn && $(MAKE) && cd ../.. && cp -rf ./libraries/libvn/lib/* ./lib && mkdir inc/libvn && cp -rf ./libraries/libvn/src/*.h ./inc/libvn
-cd ./libraries/libvh && $(MAKE) && cd ../.. && cp -rf ./libraries/libvh/lib/* ./lib && mkdir inc/libvh && cp -rf ./libraries/libvh/src/*.h ./inc/libvh
-cd ./libraries/libes && $(MAKE) && cd ../.. && cp -rf ./libraries/libes/lib/* ./lib && mkdir inc/libes && cp -rf ./libraries/libes/src/*.h ./inc/libes
-cd ./libraries/libarguments && $(MAKE) && cd ../.. && cp -rf ./libraries/libarguments/lib/* ./lib && mkdir inc/libarguments && cp -rf ./libraries/libarguments/src/*.h ./inc/libarguments
-cd ./libraries/libmit && $(MAKE) && cd ../.. && cp -rf ./libraries/libmit/lib/* ./lib && mkdir inc/libmit && cp -rf ./libraries/libmit/src/*.h ./inc/libmit
-cd ./modules/io_event_tls_engine && $(MAKE) && cd ../../ && cp -rf ./modules/io_event_tls_engine/lib/* ./lib/modules && mkdir inc/modules/io_event_tls_engine && cp -rf ./modules/io_event_tls_engine/src/*.h ./inc/modules/io_event_tls_engine
-cd ./modules/ast_standard_modules && $(MAKE) && cd ../../ && cp -rf ./modules/ast_standard_modules/lib/* ./lib/modules && mkdir inc/modules/ast_standard_modules && cp -rf ./modules/ast_standard_modules/src/*.h ./inc/modules/ast_standard_modules
-cd ./modules/es_language_js && $(MAKE) && cd ../../ && cp -rf ./modules/es_language_js/lib/* ./lib/modules && mkdir inc/modules/es_language_js && cp -rf ./modules/es_language_js/src/*.h ./inc/modules/es_language_js
subheader:
rm -rf ./inc/*
-mkdir ./inc/modules
-mkdir inc/libcpp && cp -rf ./libraries/libcpp/src/*.h ./inc/libcpp
-mkdir inc/libmm && cp -rf ./libraries/libmm/src/*.h ./inc/libmm
-mkdir inc/libstring && cp -rf ./libraries/libstring/src/*.h ./inc/libstring
-mkdir inc/liburl && cp -rf ./libraries/liburl/src/*.h ./inc/liburl
-mkdir inc/libmatch && cp -rf ./libraries/libmatch/src/*.h ./inc/libmatch
-mkdir inc/libelf && cp -rf ./libraries/libelf/src/*.h ./inc/libelf
-mkdir inc/libhttp && cp -rf ./libraries/libhttp/src/*.h ./inc/libhttp
-mkdir inc/libstream && cp -rf ./libraries/libstream/src/*.h ./inc/libstream
-mkdir inc/libmodel && cp -rf ./libraries/libmodel/src/*.h ./inc/libmodel
-mkdir inc/libmodule && cp -rf ./libraries/libmodule/src/*.h ./inc/libmodule
-mkdir inc/libast && cp -rf ./libraries/libast/src/*.h ./inc/libast
-mkdir inc/libkernel && cp -rf ./libraries/libkernel/src/*.h ./inc/libkernel
-mkdir inc/libsystem && cp -rf ./libraries/libsystem/src/*.h ./inc/libsystem
-mkdir inc/libecho && cp -rf ./libraries/libecho/src/*.h ./inc/libecho
-mkdir inc/libevent && cp -rf ./libraries/libevent/src/*.h ./inc/libevent
-mkdir inc/libioevent && cp -rf ./libraries/libioevent/src/*.h ./inc/libioevent
-mkdir inc/libfsevent && cp -rf ./libraries/libfsevent/src/*.h ./inc/libfsevent
-mkdir inc/libipc && cp -rf ./libraries/libipc/src/*.h ./inc/libipc
-mkdir inc/libvm && cp -rf ./libraries/libvm/src/*.h ./inc/libvm
-mkdir inc/libvn && cp -rf ./libraries/libvn/src/*.h ./inc/libvn
-mkdir inc/libvh && cp -rf ./libraries/libvh/src/*.h ./inc/libvh
-mkdir inc/libes && cp -rf ./libraries/libes/src/*.h ./inc/libes
-mkdir inc/libarguments && cp -rf ./libraries/libarguments/src/*.h ./inc/libarguments
-mkdir inc/libmit && cp -rf ./libraries/libmit/src/*.h ./inc/libmit
-mkdir inc/modules/io_event_tls_engine && cp -rf ./modules/io_event_tls_engine/src/*.h ./inc/modules/io_event_tls_engine
-mkdir inc/modules/ast_standard_modules && cp -rf ./modules/ast_standard_modules/src/*.h ./inc/modules/ast_standard_modules
-mkdir inc/modules/es_language_js && cp -rf ./modules/es_language_js/src/*.h ./inc/modules/es_language_js
subinstall:
-mkdir libraries
-cd libraries && git clone https://github.com/FoxInTango/libcpp.git
-cd libraries && git clone https://github.com/FoxInTango/libsystem.git
-cd libraries && git clone https://github.com/FoxInTango/libmm.git
-cd libraries && git clone https://github.com/FoxInTango/libstring.git
-cd libraries && git clone https://github.com/FoxInTango/liburl.git
-cd libraries && git clone https://github.com/FoxInTango/libmatch.git
-cd libraries && git clone https://github.com/FoxInTango/libelf.git
-cd libraries && git clone https://github.com/FoxInTango/libhttp.git
-cd libraries && git clone https://github.com/FoxInTango/libstream.git
-cd libraries && git clone https://github.com/FoxInTango/libast.git
-cd libraries && git clone https://github.com/FoxInTango/libecho.git
-cd libraries && git clone https://github.com/FoxInTango/libmodel.git
-cd libraries && git clone https://github.com/FoxInTango/libmodule.git
-cd libraries && git clone https://github.com/FoxInTango/libevent.git
-cd libraries && git clone https://github.com/FoxInTango/libioevent.git
-cd libraries && git clone https://github.com/FoxInTango/libfsevent.git
-cd libraries && git clone https://github.com/FoxInTango/libipc.git
-cd libraries && git clone https://github.com/FoxInTango/libvm.git
-cd libraries && git clone https://github.com/FoxInTango/libvn.git
-cd libraries && git clone https://github.com/FoxInTango/libvh.git
-cd libraries && git clone https://github.com/FoxInTango/libes.git
-cd libraries && git clone https://github.com/FoxInTango/libarguments.git
-cd libraries && git clone https://github.com/FoxInTango/libmit.git
-cd libraries && git clone https://github.com/FoxInTango/libkernel.git
-mkdir modules
-cd modules && git clone https://github.com/FoxInTango/io_event_tls_engine.git
-cd modules && git clone https://github.com/FoxInTango/ast_standard_modules.git
-cd modules && git clone https://github.com/FoxInTango/es_language_js.git
-mkdir templates
-cd templates && git clone https://github.com/FoxInTango/ast_module_template.git
-cd templates && git clone https://github.com/FoxInTango/es_language_template.git
update:
-git pull
-cd ./libraries/libcpp && git pull
-cd ./libraries/libsystem && git pull
-cd ./libraries/libmm && git pull
-cd ./libraries/libstring && git pull
-cd ./libraries/liburl && git pull
-cd ./libraries/libmatch && git pull
-cd ./libraries/libelf && git pull
-cd ./libraries/libhttp && git pull
-cd ./libraries/libstream && git pull
-cd ./libraries/libast && git pull
-cd ./libraries/libecho && git pull
-cd ./libraries/libmodel && git pull
-cd ./libraries/libmodule && git pull
-cd ./libraries/libevent && git pull
-cd ./libraries/libioevent && git pull
-cd ./libraries/libfsevent && git pull
-cd ./libraries/libipc && git pull
-cd ./libraries/libvm && git pull
-cd ./libraries/libvn && git pull
-cd ./libraries/libvh && git pull
-cd ./libraries/libes && git pull
-cd ./libraries/libarguments && git pull
-cd ./libraries/libmit && git pull
-cd ./libraries/libkernel && git pull
-cd ./modules/io_event_tls_engine && git pull
-cd ./modules/ast_standard_modules && git pull
-cd ./modules/es_language_js && git pull
-cd ./templates/ast_module_template && git pull
-cd ./templates/es_language_template && git pull
subclean:
-cd ./libraries/libcpp && $(MAKE) clean
-cd ./libraries/libsystem && $(MAKE) clean
-cd ./libraries/libmm && $(MAKE) clean
-cd ./libraries/libstring && $(MAKE) clean
-cd ./libraries/liburl && $(MAKE) clean
-cd ./libraries/libmatch && $(MAKE) clean
-cd ./libraries/libelf && $(MAKE) clean
-cd ./libraries/libhttp && $(MAKE) clean
-cd ./libraries/libstream && $(MAKE) clean
-cd ./libraries/libast && $(MAKE) clean
-cd ./libraries/libecho && $(MAKE) clean
-cd ./libraries/libmodel && $(MAKE) clean
-cd ./libraries/libmodule && $(MAKE) clean
-cd ./libraries/libevent && $(MAKE) clean
-cd ./libraries/libioevent && $(MAKE) clean
-cd ./libraries/libfsevent && $(MAKE) clean
-cd ./libraries/libipc && $(MAKE) clean
-cd ./libraries/libvm && $(MAKE) clean
-cd ./libraries/libvn && $(MAKE) clean
-cd ./libraries/libvh && $(MAKE) clean
-cd ./libraries/libes && $(MAKE) clean
-cd ./libraries/libarguments && $(MAKE) clean
-cd ./libraries/libmit && $(MAKE) clean
-cd ./libraries/libkernel && $(MAKE) clean
-cd ./modules/io_event_tls_engine && $(MAKE) clean
-cd ./modules/ast_standard_modules && $(MAKE) clean
-cd ./modules/es_language_js && $(MAKE) clean
rm lib/*.a;rm lib/*.so;rm lib/modules/*.so;rm lib/modules/*.ko
devinstall:
-cd libraries && git clone git@github.com:FoxInTango/libcpp.git
-cd libraries && git clone git@github.com:FoxInTango/libsystem.git
-cd libraries && git clone git@github.com:FoxInTango/libmm.git
-cd libraries && git clone git@github.com:FoxInTango/libstring.git
-cd libraries && git clone git@github.com:FoxInTango/liburl.git
-cd libraries && git clone git@github.com:FoxInTango/libmatch.git
-cd libraries && git clone git@github.com:FoxInTango/libelf.git
-cd libraries && git clone git@github.com:FoxInTango/libhttp.git
-cd libraries && git clone git@github.com:FoxInTango/libstream.git
-cd libraries && git clone git@github.com:FoxInTango/libast.git
-cd libraries && git clone git@github.com:FoxInTango/libecho.git
-cd libraries && git clone git@github.com:FoxInTango/libmodel.git
-cd libraries && git clone git@github.com:FoxInTango/libmodule.git
-cd libraries && git clone git@github.com:FoxInTango/libevent.git
-cd libraries && git clone git@github.com:FoxInTango/libioevent.git
-cd libraries && git clone git@github.com:FoxInTango/libfsevent.git
-cd libraries && git clone git@github.com:FoxInTango/libipc.git
-cd libraries && git clone git@github.com:FoxInTango/libvm.git
-cd libraries && git clone git@github.com:FoxInTango/libvn.git
-cd libraries && git clone git@github.com:FoxInTango/libvh.git
-cd libraries && git clone git@github.com:FoxInTango/libes.git
-cd libraries && git clone git@github.com:FoxInTango/libarguments.git
-cd libraries && git clone git@github.com:FoxInTango/libmit.git
-cd libraries && git clone git@github.com:FoxInTango/libkernel.git
-mkdir modules
-cd modules && git clone git@github.com:FoxInTango/io_event_tls_engine.git
-cd modules && git clone git@github.com:FoxInTango/ast_standard_modules.git
-cd modules && git clone git@github.com:FoxInTango/es_language_js.git
-mkdir templates
-cd templates && git clone git@github.com:FoxInTango/ast_module_template
-cd templates && git clone git@github.com:FoxInTango/es_language_template
publish:
-git add Makefile
-git add README.md
-git add REF.md
-git add LICENSE
-git add .gitignore
-git add .gitmodules
-git add src/*.h
-git add src/*.cpp
-git add etc/alpine
-git add readme/*
-git add inc/.keepalive
-git add lib/.keepalive
-git add bin/.keepalive
-git commit -m "alpine" && git push
-cd ./libraries/libcpp && git add . && git commit -m "alpine" && git push
-cd ./libraries/libsystem && git add . && git commit -m "alpine" && git push
-cd ./libraries/libmm && git add . && git commit -m "alpine" && git push
-cd ./libraries/libstring && git add . && git commit -m "alpine" && git push
-cd ./libraries/liburl && git add . && git commit -m "alpine" && git push
-cd ./libraries/libmatch && git add . && git commit -m "alpine" && git push
-cd ./libraries/libelf && git add . && git commit -m "alpine" && git push
-cd ./libraries/libhttp && git add . && git commit -m "alpine" && git push
-cd ./libraries/libstream && git add . && git commit -m "alpine" && git push
-cd ./libraries/libast && git add . && git commit -m "alpine" && git push
-cd ./libraries/libecho && git add . && git commit -m "alpine" && git push
-cd ./libraries/libmodel && git add . && git commit -m "alpine" && git push
-cd ./libraries/libmodule && git add . && git commit -m "alpine" && git push
-cd ./libraries/libevent && git add . && git commit -m "alpine" && git push
-cd ./libraries/libioevent && git add . && git commit -m "alpine" && git push
-cd ./libraries/libfsevent && git add . && git commit -m "alpine" && git push
-cd ./libraries/libipc && git add . && git commit -m "alpine" && git push
-cd ./libraries/libvm && git add . && git commit -m "alpine" && git push
-cd ./libraries/libvn && git add . && git commit -m "alpine" && git push
-cd ./libraries/libvh && git add . && git commit -m "alpine" && git push
-cd ./libraries/libes && git add . && git commit -m "alpine" && git push
-cd ./libraries/libarguments && git add . && git commit -m "alpine" && git push
-cd ./libraries/libmit && git add . && git commit -m "alpine" && git push
-cd ./libraries/libkernel && git add . && git commit -m "alpine" && git push
-cd ./modules/io_event_tls_engine && git add . && git commit -m "alpine" && git push
-cd ./modules/ast_standard_modules && git add . && git commit -m "alpine" && git push
-cd ./modules/es_language_js && git add . && git commit -m "alpine" && git push
-cd ./templates/ast_module_template && git add . && git commit -m "alpine" && git push
-cd ./templates/es_language_template && git add . && git commit -m "alpine" && git push
clean :
rm -f $(TARGET_OBJECTS_AS)
rm -f $(TARGET_OBJECTS_CC)
rm -f $(TARGET_OBJECTS_PP)
rm -f ${TARGET_BIN_DIR}/*
rm -f $(TARGET_LIB_DIR)/*.a ; rm -f $(TARGET_LIB_DIR)/*.so ; rm -f $(TARGET_LIB_DIR)/modules/*.so ; rm -f $(TARGET_LIB_DIR)/modules/*.ko
rm -rf ${TARGET_INC_DIR}/*
INSTALL_PATH=${INSTALL_PATH_PREFIX}/versions/${TARGET_VERSION}
install :
-mkdir -p $(INSTALL_PATH)
-mkdir ${INSTALL_PATH}/inc
-mkdir $(INSTALL_PATH)/bin
-mkdir $(INSTALL_PATH)/lib
cp -rf $(TARGET_INC_DIR)/* $(INSTALL_PATH)/inc/
cp -rf $(TARGET_BIN_DIR)/* $(INSTALL_PATH)/bin/
cp -rf $(TARGET_LIB_DIR)/* $(INSTALL_PATH)/lib/
ln -s $(INSTALL_PATH)/bin/${TARGET_NAME} /usr/local/bin/${TARGET_NAME}
current:
@echo current version ${TARGET_VERSION}
uninstall :
rm -rf $(INSTALL_PATH)
rm -f /usr/local/bin/${TARGET_NAME}