-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
executable file
·41 lines (31 loc) · 758 Bytes
/
makefile
File metadata and controls
executable file
·41 lines (31 loc) · 758 Bytes
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
.SUFFIXES: .o .c .cc
MAKEFLAGS=-j $(if $(CORES),$(CORES),1)
CC=g++
INCS=
CFLAGS=-W -Wall -Wextra -Wunused-parameter -O3 -std=c++11 -g3 -ggdb
OBJS=
LIBS=
LDEPS=
LIBOBJ= $(addsuffix .o,$(basename $(wildcard wol[a-z]*.cpp)))
SRC=$(shell ls *.h *.cpp)
TARGETS=wolver
all: $(TARGETS)
-include dependencies
%.o: %.cpp
$(CC) $(CFLAGS) -c -o $@ $<
dependencies: $(SRC) makefile
rm -f $@; $(CC) $(CFLAGS) -MM $(SRC)|sed -e 's,:,: makefile,'>$@
wolver: wolmain.o libwolver.a
$(CC) $(CFLAGS) -o $@ wolmain.o -L. -lwolver
libwolver.a: $(LIBOBJ)
rm -f $@
ar rc $@ $(LIBOBJ)
ranlib $@
clean:
# rm -f $(TARGETS)
rm -f dependencies
rm -f *.gcda *.gcno *.gcov *.gch *.plist
rm -f log/*.log *.tmp
rm -f *.o *.a
rm -f btormbt btoruntrace
.PHONY: all clean