Skip to content

Commit 1bc3f43

Browse files
committed
Make build/counter the default build target
1 parent a4c7c9f commit 1bc3f43

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
.PHONY: examples
2-
examples: build/counter build/counter_cpp build/counter_c3 build/echo
1+
build/counter: build examples/counter.c coroutine.h build/coroutine.o
2+
gcc -I. -Wall -Wextra -ggdb -o build/counter examples/counter.c build/coroutine.o
33

44
build/echo: build examples/echo.c3 coroutine.c3 build/coroutine.o
55
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
66
c3c compile -o build/echo examples/echo.c3 coroutine.c3 build/echo.coroutine.o
77

8-
build/counter: build examples/counter.c coroutine.h build/coroutine.o
9-
gcc -I. -Wall -Wextra -ggdb -o build/counter examples/counter.c build/coroutine.o
10-
118
build/counter_cpp: build examples/counter.cpp coroutine.h build/coroutine.o
129
g++ -I. -Wall -Wextra -ggdb -o build/counter_cpp examples/counter.cpp build/coroutine.o
1310

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ Custom coroutines implementation in GNU C.
1111
## Quick Start
1212

1313
```console
14-
$ make ./build/counter
14+
$ make
1515
$ ./build/counter
1616
```

0 commit comments

Comments
 (0)