cours_progra/bac2/os/chap3/Makefile

25 lines
277 B
Makefile
Raw Normal View History

2023-10-24 15:48:13 +02:00
.PHONY: clean, mrproper
CC = gcc
CFLAGS = -g -Wall
2023-11-08 09:42:46 +01:00
all: ex1 ex2 ex3 ex4 ex5
2023-10-24 15:48:13 +02:00
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
2023-11-08 09:42:46 +01:00
%: %.o
2023-10-24 15:48:13 +02:00
$(CC) $(CFLAGS) -o $@ $+
clean:
rm -f *.o core.*
mrproper: clean
rm -f ex1
2023-11-08 09:42:46 +01:00
run: ex6
2023-10-24 15:48:13 +02:00
./$<
2023-11-08 09:42:46 +01:00
graph: run
graph -Tpng plot > plot.png
nsxiv plot.png