File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
- build/counter : examples/counter.c coroutine.h build/coroutine.o
2
- gcc -I. -Wall -Wextra -ggdb -o build/counter examples/counter.c build/coroutine.o
1
+ build/counter : examples/counter.c coroutine.h build/coroutine.a
2
+ gcc -I. -Wall -Wextra -ggdb -o build/counter examples/counter.c build/coroutine.a
3
3
4
4
.PHONY :
5
5
examples : build/counter build/counter_cpp build/counter_c3 build/counter_jai build/echo
6
6
7
- build/echo : examples/echo.c3 coroutine.c3 build/coroutine.o
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
9
- c3c compile -o build/echo examples/echo.c3 coroutine.c3 build/echo.coroutine.o
7
+ build/echo : examples/echo.c3 coroutine.c3 build/coroutine.a
8
+ c3c compile -l build/coroutine.a -o build/echo examples/echo.c3 coroutine.c3
10
9
11
- build/counter_cpp : examples/counter.cpp coroutine.h build/coroutine.o
12
- g++ -I. -Wall -Wextra -ggdb -o build/counter_cpp examples/counter.cpp build/coroutine.o
10
+ build/counter_cpp : examples/counter.cpp coroutine.h build/coroutine.a
11
+ g++ -I. -Wall -Wextra -ggdb -o build/counter_cpp examples/counter.cpp build/coroutine.a
13
12
14
- build/counter_c3 : examples/counter.c3 coroutine.c3 build/coroutine.o
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
16
- c3c compile -o build/counter_c3 examples/counter.c3 coroutine.c3 build/counter.coroutine.o
13
+ build/counter_c3 : examples/counter.c3 coroutine.c3 build/coroutine.a
14
+ c3c compile -l build/coroutine.a -o build/counter_c3 examples/counter.c3 coroutine.c3
17
15
18
16
build/counter_jai : examples/counter.jai build/coroutine.a build/coroutine.so
19
17
jai-linux examples/counter.jai
You can’t perform that action at this time.
0 commit comments