-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (13 loc) · 752 Bytes
/
Makefile
File metadata and controls
19 lines (13 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
NAME?=go-peafowl
all:
@ if [ ! -d "./include/peafowl_lib" ]; then git clone https://github.com/DanieleDeSensi/Peafowl.git ./include/peafowl_lib; fi;
@ if [ ! -f ./include/peafowl_lib/build/src/libpeafowl.so ]; then cd ./include/peafowl_lib && mkdir build && cd build && cmake ../ && make; fi;
@ if [ ! -d peafowl ]; then mkdir peafowl; fi;
@ if [ -f ./include/peafowl_lib/build/src/libpeafowl.so ]; then cp ./include/peafowl_lib/build/src/libpeafowl.so peafowl; fi;
@ if [ -f ./include/peafowl_lib/include/peafowl/peafowl.h ]; then cp -r ./include/peafowl_lib/include/peafowl/* peafowl; fi;
go build -ldflags "-s -w" -o example/$(NAME) example/*.go
debug:
go build -o example/$(NAME) example/*.go
.PHONY: clean
clean:
rm -fr $(NAME)