36 lines
703 B
Makefile
36 lines
703 B
Makefile
|
|
# exemples pour le chapitre sur le C
|
|
# new Sat Feb 11 12:06:34 CET 2023
|
|
|
|
|
|
all: no-op slowprint fgets-simple packtest use_envp
|
|
|
|
# simplified version of the canonical first C program
|
|
hello: hello.c Makefile
|
|
gcc -Wall $< -o $@
|
|
|
|
# please show me the command line
|
|
arguments: arguments.c Makefile
|
|
gcc -Wall $< -o $@
|
|
|
|
no-op: no-op.c Makefile
|
|
gcc -Wall $< -o $@
|
|
|
|
slowprint: slowprint.c Makefile
|
|
gcc -Wall $< -o $@
|
|
|
|
fgets-simple: fgets-simple.c Makefile
|
|
gcc -Wall $< -o $@
|
|
|
|
demo-strtok: demo-strtok.c Makefile
|
|
gcc -Wall $< -o $@
|
|
|
|
# added Wed Mar 27 10:01:41 UTC 2024
|
|
packtest: packtest.c
|
|
gcc -Wall $< -o $@
|
|
|
|
# added Thu Aug 8 13:44:58 UTC 2024
|
|
use_envp: use_envp.c Makefile
|
|
gcc -Wall $< -o $@
|
|
|