aboutsummaryrefslogtreecommitdiffstats
path: root/daemon/makefile
blob: 080a089009f77881cca8f72d93770b97503c7fd2 (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
##################################VARS#################################
CC=clang
CC_FLAGS=
LD_FLAGS=
TARGETD=mutatord
TARGETS=mutatorserver
TARGETC=mutatorclient
##################################RULES################################
.DEFAULT: all

.PHONY: all clean help

all: $(TARGETD) $(TARGETC) $(TARGETS)

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

TARGETD:
	$(CC) $^ $(LD_FLAGS) -o $@

TARGETS:
	$(CC) $^ $(LD_FLAGS) -o $@

TARGETC:
	$(CC) $^ $(LD_FLAGS) -o $@

clean:
	rm -f *.o *~ $(TARGETD) $(TARGETS) $(TARGETC)

help:
	@echo 'all builds the daemon, the server and the client. all is the default.'
	@echo 'mutatord build the daemon'
	@echo 'mutatorc builds the client'
	@echo 'mutators builds the client'
	@echo 'clean runs clean.'
	@echo 'help runs help.'