projet-systeme-exploitation.../à zipper/Makefile

35 lines
566 B
Makefile
Raw Normal View History

2021-05-10 13:49:14 +00:00
CC = gcc
LDFLAGS = -Wall
all: minishell Q1 Q3 Q4 Q5 Q6 Q7
minishell: jobs.c readcmd.c minishell.c
$(CC) $(LDFLAGS) $^ -o $@
Q1: jobs.c readcmd.c Q1.c
$(CC) $(LDFLAGS) $^ -o $@
Q3: jobs.c readcmd.c Q3.c
$(CC) $(LDFLAGS) $^ -o $@
Q4: jobs.c readcmd.c Q4.c
$(CC) $(LDFLAGS) $^ -o $@
Q5: jobs.c readcmd.c Q5.c
$(CC) $(LDFLAGS) $^ -o $@
Q6: jobs.c readcmd.c Q6.c
$(CC) $(LDFLAGS) $^ -o $@
Q7: jobs.c readcmd.c Q7.c
$(CC) $(LDFLAGS) $^ -o $@
clean:
rm minishell readcmd jobs Q1 Q3 Q4 Q5 Q6 Q7
.PHONY: clean all
readcmd.o: readcmd.h
jobs.o: jobs.h