Skip to content
This repository was archived by the owner on Oct 1, 2023. It is now read-only.

Commit 7cea360

Browse files
committed
Make test default
1 parent eb326bd commit 7cea360

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ CFLAGS=-Wall -Wextra -pedantic -Werror \
44
-fsanitize=undefined -fstrict-aliasing
55
TEMP=.clang_cpp_test.cpp
66

7+
8+
test: test.c sar.c saru.c
9+
$(CC) test.c -o $@ $(CFLAGS) -std=c99
10+
./$@
11+
$(CXX) -x c++ test.c -o $@ $(CFLAGS) -std=c++11
12+
./$@
13+
714
options:
815
@echo "CC=${CC}"
916
@echo "CXX=${CXX}"
@@ -14,11 +21,4 @@ clean:
1421
rm -f test
1522

1623

17-
test: test.c sar.c saru.c
18-
$(CC) test.c -o $@ $(CFLAGS) -std=c99
19-
./$@
20-
$(CXX) -x c++ test.c -o $@ $(CFLAGS) -std=c++11
21-
./$@
22-
23-
2424
.PHONY: clean options

0 commit comments

Comments
 (0)