projet-systeme-exploitation.../à zipper/Makefile
2021-05-23 19:00:21 +02:00

35 lines
599 B
Makefile

CC = gcc
LDFLAGS = -Wall -g
all: minishell Q1 Q3 Q4 Q5 Q6 Q7
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
$(CC) $(LDFLAGS) $^ -o $@
clean:
rm minishell readcmd jobs utils Q1 Q3 Q4 Q5 Q6 Q7
.PHONY: clean all
readcmd.o: readcmd.h
jobs.o: jobs.h
utils.o: utils.h