blob: fb5210889e979fba99d0ec85de332a820ab5e735 (
plain)
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
|
ifndef CERT_ROOT
CERT_ROOT = ..
endif
MAJOR="1.0"
BUILD="1.0"
BUILD_FINGERPRINT=$(MAJOR).$(BUILD)
BUILD_FINGERPRINT2=$(strip $(BUILD_FINGERPRINT))
# Default simulation parameters
NUM_PROCESSORS=1
#SPASR_ARCH_TARGET:=linux_64
TARGET = x509
all: ${TARGET}
# standard common Makefile fragment
include $(CERT_ROOT)/make/common.mk
# 3RD library path
LIB_PATH := $(CERT_ROOT)/libs
# application specification
dir := .
OBJS := \
$(OBJ_DIR)/x509.o\
dir := ./rt
include $(dir)/rt.mk
OBJS += $(OBJS_$(dir))
LDFLAGS_GLOBAL += -L ./lib -lssl -lcrypto
LDFLAGS_GLOBAL += \
-lpthread -lm -lz -ldl -lstdc++
CFLAGS_LOCAL = -std=gnu99 -g -O3 -W -Wall \
-I.\
-I./components/libevent\
-I./components/openssl\
-I./rt \
DEPS := $(objs:.o=.d)
CLEAN_LIST := $(CLEAN_LIST) $(OBJS) $(DEPS) $(TARGET_LIB) $(OBJ_DIR)
$(OBJ_DIR)/%.o: $(d)/%.c
$(COMPILE)
include $(CERT_ROOT)/make/application.mk
tarball: cert_store
if [ ! -d "package/certstroe_run/bin" ]; then mkdir -p "package/certstore_run/bin/"; fi
if [ ! -d "package/certstroe_run/conf" ]; then mkdir -p "package/certstore_run/conf"; fi
if [ ! -d "package/certstroe_run/cert" ]; then mkdir -p "package/certstore_run/cert"; fi
if [ ! -d "package/certstroe_run/rule" ]; then mkdir -p "package/certstore_run/rule"; fi
cp cert_store package/certstore_run/bin/certstore1.0
cp ../conf/cert_store.ini package/certstore_run/conf/
cp ../conf/pxy_obj_keyring.json package/certstore_run/conf
cp ../conf/table_info.conf package/certstore_run/conf
# cp ../ca/mesalab-def-cert.cer package/certstore_run/cert
# cp ../ca/mesalab-def-cert.key package/certstore_run/cert
cp ../ca/* package/certstore_run/cert
cp package/Makefile package/certstore_run/
cp ../rule/* -rf package/certstore_run/rule/
cp package/run.sh package/certstore_run/
cd package && tar cpfz certstore_run.tar.gz certstore_run
cd ..
mv package/certstore_run.tar.gz ../release/
rm -rf package/certstore_run
clean:
rm -rf $(CLEAN_LIST)
rm -f $(TARGET)
rm -rf package/bin package/lib package/etc
clobber: clean
rm -rf $(OBJ_DIR)
|