cours_progra/bac2/os/chap3/Makefile

21 lines
208 B
Makefile
Raw Normal View History

2023-10-24 15:48:13 +02:00
.PHONY: clean, mrproper
CC = gcc
CFLAGS = -g -Wall
all: ex1
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
ex1: ex1.o
$(CC) $(CFLAGS) -o $@ $+
clean:
rm -f *.o core.*
mrproper: clean
rm -f ex1
run: ex1
./$<