aboutsummaryrefslogtreecommitdiffstats
path: root/obfuscator/makefile
blob: 960fb80b7cd00a1bef11cab527679ce8c739c38d (plain) (blame)
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
######################################INCLUDES#################################
include ../macros.mk

#######################################VARS####################################
OBSC=obfuscator
SRCS=$(wildcard *.cpp)
######################################RULES####################################
.DEFAULT: all

.PHONY: all clean help depend

all: $(OBSC)

depend: .depend

.depend:$(SRCS)
	rm -f ./.depend
	$(CXX) -MM $(CXX_FLAGS) $^ > ./.depend

-include ./.depend

.cpp.o:
	$(CXX) -v $(CXX_FLAGS) -c $< -o $@

./keccak-tiny/.o:./keccak-tiny/.c
	$(CC) $(CC_FLAGS) -c $< -o $@

$(OBSC): $(OBSC).o ../mutator_aux.o ./keccak-tiny/keccak-tiny.o
	$(CXX) -v $^ $(LD_FLAGS) -o $@

clean:
	rm -f *.o *~ $(OBSC) *.out ./keccak-tiny/*.o
	rm ./.depend

deepclean:
	rm -f *.o *~ $(OBSC) *.out FILE*.cpp FILE*.hpp ./keccak-tiny/*.o
	rm ./.depend

help:
	@echo 'There is help.'
	@echo 'All is the defualt target.'
	@echo 'Clean runs clean.'
	@echo 'For a more complete and detaild list of BUILD_MODE and other things look at the main makefiles help under project root.'