Browse Source

Modification pour compiler toutes les bibliothèques

master
rick 4 months ago
parent
commit
5584f391d7
Signed by: Rick GPG Key ID: 2B593F087240EE99
  1. 8
      Makefile

8
Makefile

@ -1,23 +1,25 @@
CC=gcc
CFLAGS=-Wall -g -Isrc/boitoutil
LIB=src/boitoutil
src:=$(wildcard $(LIB)/*.c)
obj:=$(patsubst $(LIB)/%.c,obj/%.o,$(src))
all: directories rishtik clean
rishtik: obj/lib.o obj/shell.o
rishtik: $(obj) obj/shell.o
$(CC) -o $@ $^
obj/shell.o: src/shellOpt.c
$(CC) $(CFLAGS) $^ -o $@ -c
obj/lib.o: $(LIB)/parser.c
$(obj): obj/%.o: $(LIB)/%.c
$(CC) $(CFLAGS) $^ -o $@ -c
.PHONY: all directories clean
directories:
if ! [ -d "obj" ]; then \
mkdir obj; \
mkdir -p obj/lib; \
fi
clean:

Loading…
Cancel
Save