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
|
CC=gcc
|
||||||
CFLAGS=-Wall -g -Isrc/parser
|
CFLAGS=-Wall -g -Isrc/parser
|
||||||
|
|
||||||
%: obj/lib.o obj/%.o
|
all: directories rishtik clean
|
||||||
|
|
||||||
|
rishtik: obj/lib.o obj/shell.o
|
||||||
$(CC) -o $@ $^
|
$(CC) -o $@ $^
|
||||||
|
|
||||||
obj/%.o: src/%.c
|
obj/shell.o: src/shellOpt.c
|
||||||
$(CC) $(CFLAGS) $^ -o $@ -c
|
$(CC) $(CFLAGS) $^ -o $@ -c
|
||||||
|
|
||||||
obj/lib.o: src/parser/parser.c directories
|
obj/lib.o: src/parser/parser.c directories
|
||||||
$(CC) $(CFLAGS) $< -o $@ -c
|
$(CC) $(CFLAGS) $< -o $@ -c
|
||||||
|
|
||||||
.PHONY: directories clean
|
.PHONY: all directories clean
|
||||||
|
|
||||||
directories:
|
directories:
|
||||||
if ! [ -d "obj" ]; then \
|
if ! [ -d "obj" ]; then \
|
||||||
|
|
Loading…
Reference in a new issue