#
# Makefile pour le serveur SMTP sortant
#

SOURCES = $(wildcard *.c)
OBJETS = $(SOURCES:.c=.o)
BIBLIOTHEQUES = -L ../Threads -L ../Communication -L ../SMTP -lthr -lcom -lSMTP -lpthread -lresolv
CFLAGS += -std=c99 -I ../Threads -I ../Communication -I ../SMTP
CIBLE = smtp_int

#
# Nom de la cible principale
#

all: $(CIBLE)

#
# Cible de nettoyage
#

clean: 
	rm -f core *.o $(CIBLE)

#
# Dependances pour l'executable
#

$(CIBLE): $(OBJETS)
	$(CC) -o $@ $^ $(BIBLIOTHEQUES)
