This repository has been archived on 2019-08-09. You can view files and clone it, but cannot push or open issues or pull requests.
s6-pa-tp/TP9/Makefile

31 lines
533 B
Makefile
Raw Normal View History

2017-03-22 11:29:44 +01:00
#Makefile pour le tp8
#1 seul .c ici
EXEC = hash
#nom du compilo et options de compil
CC = clang
CFLAGS = -Wall -Werror
#chemins et nom de la lib
LIBNAME = liblistechaines.a
PATHLIBA = .
PATHLIBH = .
#flags de compil : le .h à la compil, la lib à l'édition de lien
LDFLAGS = -L$(PATHLIBA) -llistechaines
INCLUDES= -I$(PATHLIBH)
CFILES = $(EXEC).c
OBJS = $(patsubst %.c,%.o,$(CFILES))
all : $(EXEC)
$(EXEC) : $(OBJS)
$(CC) -o $@ $(OBJS) $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) $(INCLUDES) -c $<
clean:
rm *.o *~ $(EXEC)