File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
- build/counter : build examples/counter.c coroutine.h build/coroutine.o
1
+ build/counter : examples/counter.c coroutine.h build/coroutine.o
2
2
gcc -I. -Wall -Wextra -ggdb -o build/counter examples/counter.c build/coroutine.o
3
3
4
- build/echo : build examples/echo.c3 coroutine.c3 build/coroutine.o
4
+ .PHONY :
5
+ examples : build/counter build/counter_cpp build/counter_c3 build/echo
6
+
7
+ build/echo : examples/echo.c3 coroutine.c3 build/coroutine.o
5
8
cp build/coroutine.o build/echo.coroutine.o # c3c deletes the object files for some reason, so we make a copy to preserve the original
6
9
c3c compile -o build/echo examples/echo.c3 coroutine.c3 build/echo.coroutine.o
7
10
8
- build/counter_cpp : build examples/counter.cpp coroutine.h build/coroutine.o
11
+ build/counter_cpp : examples/counter.cpp coroutine.h build/coroutine.o
9
12
g++ -I. -Wall -Wextra -ggdb -o build/counter_cpp examples/counter.cpp build/coroutine.o
10
13
11
- build/counter_c3 : build examples/counter.c3 coroutine.c3 build/coroutine.o
14
+ build/counter_c3 : examples/counter.c3 coroutine.c3 build/coroutine.o
12
15
cp build/coroutine.o build/counter.coroutine.o # c3c deletes the object files for some reason, so we make a copy to preserve the original
13
16
c3c compile -o build/counter_c3 examples/counter.c3 coroutine.c3 build/counter.coroutine.o
14
17
15
- build/coroutine.o : build coroutine.c coroutine.h
18
+ build/coroutine.o : coroutine.c coroutine.h
19
+ mkdir -p build
16
20
gcc -Wall -Wextra -ggdb -c -o build/coroutine.o coroutine.c
17
21
18
- build :
19
- mkdir -p build
You can’t perform that action at this time.
0 commit comments