Modif pour ne marcher qu’avec le fichier shellOpt.c

This commit is contained in:
rick 2021-02-16 22:28:32 +01:00
parent 3d48d11401
commit 79b336955c
Signed by: Rick
GPG key ID: 2B593F087240EE99

View file

@ -1,16 +1,18 @@
CC=gcc
CFLAGS=-Wall -g -Isrc/parser
%: obj/lib.o obj/%.o
all: directories rishtik clean
rishtik: obj/lib.o obj/shell.o
$(CC) -o $@ $^
obj/%.o: src/%.c
obj/shell.o: src/shellOpt.c
$(CC) $(CFLAGS) $^ -o $@ -c
obj/lib.o: src/parser/parser.c directories
$(CC) $(CFLAGS) $< -o $@ -c
.PHONY: directories clean
.PHONY: all directories clean
directories:
if ! [ -d "obj" ]; then \