-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (31 loc) · 873 Bytes
/
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
################ CARAVELA's SIMULATOR MAKEFILE ###############
GOCMD=go
######### Builtin GO tools #########
GOBUILD=$(GOCMD) build
GOINSTALL=$(GOCMD) install
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
############ Output Files ###########
EXE=.exe
BINARY_NAME=caravela_sim$(EXE)
########################## COMMANDS ############################
all: test build
build:
@echo Building for the current machine settings...
$(GOBUILD) -o $(BINARY_NAME) -v
build-linux:
@echo Building for linux and current machine arch...
env GOOS=linux $(GOBUILD) -o $(BINARY_NAME) -v
clean:
@echo Cleaning project...
$(GOCLEAN)
rm -f $(BINARY_NAME)
install:
@echo Installing CARAVELA-SIM in the local GO environment...
$(GOINSTALL) -v -gcflags "-N -l" .
test:
@echo Testing...
$(GOTEST) -v ./...
simulate:
@echo Executing default/example simulation
$(BINARY_NAME) start