TetaTricks/code/Makefile

48 lines
923 B
Makefile
Raw Normal View History

2020-11-24 10:40:57 +11:00
######################################################
# TetaTricks
#
# exemples du bouquin
ex_curses: ex_curses.c Makefile
gcc -Wall $< -o $@ -lncurses
thread-demo: thread-demo.c Makefile
gcc -Wall -pthread $< -o $@
2021-07-31 08:45:42 +11:00
hello: hello.c Makefile
gcc -Wall $< -o $@
arguments: arguments.c Makefile
gcc -Wall $< -o $@
2021-08-13 18:24:46 +11:00
no-op: no-op.c Makefile
gcc -Wall $< -o $@
2021-09-17 03:31:11 +11:00
#------------- IPC -----------------------
2021-08-25 16:18:34 +11:00
2021-08-18 18:49:28 +11:00
get-signal: get-signal.c Makefile
gcc -Wall $< -o $@
2021-08-25 16:18:34 +11:00
2021-08-29 02:06:26 +11:00
fifo: fifo-rx fifo-tx
2021-08-25 16:18:34 +11:00
dtime.o: dtime.c my-fifo.h Makefile
gcc -Wall -c $<
fifo-tx: fifo-tx.c my-fifo.h dtime.o Makefile
gcc -Wall $< dtime.o -o $@
fifo-rx: fifo-rx.c my-fifo.h dtime.o Makefile
gcc -Wall $< dtime.o -o $@
2021-09-17 03:31:11 +11:00
#------------- PLUGIN --------------------
2021-09-17 03:53:40 +11:00
plugin: plugiciel.so appelant
2021-09-17 03:31:11 +11:00
plugiciel.so: plugiciel.c plugiciel.h Makefile
gcc -Wall -shared -fPIC $< -o $@
appelant: appelant.c plugiciel.h Makefile
gcc -Wall $< -ldl -o $@