projet-systeme-exploitation.../Makefile

35 lines
599 B
Makefile
Raw Normal View History

2021-04-20 16:12:44 +00:00
CC = gcc
2021-05-25 15:58:28 +00:00
LDFLAGS = -Wall -g
2021-04-20 16:12:44 +00:00
2021-05-25 15:58:28 +00:00
all: minishell Q1 Q3 Q4 Q5 Q6 Q7
2021-04-20 16:12:44 +00:00
2021-05-25 15:58:28 +00:00
minishell: utils.c 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
2021-04-20 16:12:44 +00:00
$(CC) $(LDFLAGS) $^ -o $@
clean:
2021-05-25 15:58:28 +00:00
rm minishell readcmd jobs utils Q1 Q3 Q4 Q5 Q6 Q7
2021-04-20 16:12:44 +00:00
.PHONY: clean all
readcmd.o: readcmd.h
2021-05-10 13:49:14 +00:00
jobs.o: jobs.h
2021-05-25 15:58:28 +00:00
utils.o: utils.h