-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (34 loc) · 898 Bytes
/
Makefile
File metadata and controls
50 lines (34 loc) · 898 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
41
42
43
44
45
46
47
48
49
50
.PHONY: all clean depend info
CXXFLAGS += -pedantic -Werror -Wall -Wextra -g
LDFLAGS +=
SPEC_SRC = $(wildcard spec/*.cpp)
SRCS = $(SPECIFIC_SRC) $(SPEC_SRC)
OBJS = $(SRCS:.cpp=.o)
TARGET = specsuite
.cpp.o:
@echo CXX $<
@$(CXX) $(CXXFLAGS) $< -c -o $@
all: info $(TARGET) $(SPEC_TARGET)
@echo SPEC
@./$(TARGET) $(subset)
info:
@echo " Compile options"
@echo " CXXFLAGS: $(CXXFLAGS)"
@echo " LDFLAGS: $(LDFLAGS)"
$(TARGET): $(OBJS)
@echo LINK $@
@$(CXX) $(OBJS) $(LDFLAGS) -o $(TARGET)
clean:
@echo CLEAN
@$(RM) $(OBJS) $(SPEC_OBJ) $(SPEC_TARGET) $(TARGET) $(OBJ_DIR)
depend:
@echo DEP
@makedepend -Y -- $(CXXFLAGS) -- $(SRCS) $(SPEC_SRC) > /dev/null 2>&1
@$(RM) Makefile.bak
# DO NOT DELETE
spec/spec.o: spec/spec.h
spec/spec_main.o: spec/spec.h
spec/spec_spec.o: spec/spec.h
spec/spec.o: spec/spec.h
spec/spec_main.o: spec/spec.h
spec/spec_spec.o: spec/spec.h