2018-12-05 16:38:03 +01:00
|
|
|
#
|
|
|
|
# must be run with gnu make
|
|
|
|
#
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
|
2018-12-11 00:33:15 +01:00
|
|
|
CCOPT = -Wall -g
|
|
|
|
|
|
|
|
all: essai fake-values
|
|
|
|
|
2018-12-08 13:02:24 +01:00
|
|
|
essai: essai.c funcs.o Makefile
|
2018-12-11 00:33:15 +01:00
|
|
|
gcc ${CCOPT} $< funcs.o -o $@
|
2018-12-08 13:02:24 +01:00
|
|
|
|
|
|
|
|
2018-12-05 16:38:03 +01:00
|
|
|
funcs.o: funcs.c funcs.h Makefile
|
2018-12-11 00:33:15 +01:00
|
|
|
gcc ${CCOPT} -c $<
|
2018-12-05 16:38:03 +01:00
|
|
|
|
|
|
|
fake-values: fake-values.c funcs.o Makefile
|
2018-12-11 00:33:15 +01:00
|
|
|
gcc ${CCOPT} $< funcs.o -o $@
|
2018-12-05 16:38:03 +01:00
|
|
|
|