Modif pour ne marcher qu’avec le fichier shellOpt.c
This commit is contained in:
parent
3d48d11401
commit
79b336955c
1 changed files with 5 additions and 3 deletions
8
Makefile
8
Makefile
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue