forked from deepfence/ThreatMapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (39 loc) · 1.47 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
#
# DEEPFENCE.IO CONFIDENTIAL
# _________________________
#
# [2014 - 2022] deepfence Inc
# All Rights Reserved.
#
# NOTICE: All information contained herein is, and remains
# the property of deepfence.io and its suppliers,
# if any. The intellectual and technical concepts contained
# herein are proprietary to deepfence.io
# and its suppliers and may be covered by U.S. and Foreign Patents,
# patents in process, and are protected by trade secret or copyright law.
# Dissemination of this information or reproduction of this material
# is strictly forbidden unless prior written permission is obtained
# from deepfence.io.
#
GOFLAGS += --ldflags
GOFLAGS += '-extldflags "-static"'
LN = ln
MKDIR = mkdir
CD = cd
CP = cp
#all:: prep libs deepfenced install gocode
all:: gocode
gocode:
# go build -o tools/apache/licensegen/licensegen tools/apache/licensegen/licensegen.go
echo "Building uploader for CVE scans..."
$(CD) fileuploader/ && go mod tidy && env CGO_ENABLED=0 go build -o ../fileUploader $(GOFLAGS)
echo "Building agent authenticator..."
$(CD) misc/deepfence/df-utils/agent_auth && env CGO_ENABLED=0 go build -o agentAuth $(GOFLAGS) .
echo "Building go binary for cloud metadata instance id..."
$(CD) misc/deepfence/df-utils/get_cloud_instance_id && env CGO_ENABLED=0 go build -o getCloudInstanceId $(GOFLAGS) .
install:
clean:
$(RM) fileUploader
$(RM) misc/deepfence/df-utils/agentAuth
$(RM) misc/deepfence/df-utils/getCloudInstanceId
cd tools/apache/scope && make realclean