-
Notifications
You must be signed in to change notification settings - Fork 7
/
makefile
executable file
·60 lines (45 loc) · 1.4 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
cflags=-Wall -O2 -DLINUX -I. -I./utillib -I./etherlib
product=ethslurp
libs=etherlib/etherlib.a utillib/utillib.a /usr/lib/libcurl.dylib
src= \
ethslurp.cpp \
options.cpp
#-------------------------------------------------
# probably don't have to change below this line
objects = $(patsubst %.cpp,objs/%.o,$(src))
all:
@cd utillib; make; cd ..
@cd etherlib; make; cd ..
@echo "$(product) build started"
@echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
@make $(product)
@echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
hack: all
@cd theHack; make; cd ..
@make -B back
test: all
@cd theData/tests; make; cd ..
@cd theData/data; make; cd ..
@cd theData/funcs; make; cd ..
@cd theData/ghc; make; cd ..
@cd theData/otherContracts; make; cd ..
@cd theData/whales; make; cd ..
@make -B back
back:
@rm -fR theData/backup
@cp -pR ~/.ethslurp theData/backup
@rm -fR theData/backup/slurps
$(product): $(objects) $(libs)
g++ -o $(product) $(objects) $(libs)
@strip $(product)
$(objects): | objs
objs:
@mkdir -p $@
objs/%.o : %.cpp
$(CXX) $(CXXFLAGS) $(cflags) -c $< -o $@
cleanall:
@make clean
clean:
@cd utillib; make clean; cd ..
@cd etherlib; make clean; cd ..
-@$(RM) -f $(product) $(objects) 2> /dev/null