From d84a86e92c9f98c39fb148c9c2fc2b69936e6b20 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Wed, 26 Oct 2011 23:32:29 +0200 Subject: [PATCH] Le makefile est parfait --- C_Language/weechat_plugins/Makefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/C_Language/weechat_plugins/Makefile b/C_Language/weechat_plugins/Makefile index 567c6f7..50d0d2d 100644 --- a/C_Language/weechat_plugins/Makefile +++ b/C_Language/weechat_plugins/Makefile @@ -8,16 +8,13 @@ CC=gcc CFLAGS = -Wall -fPIC EXEC = currentsong -gcc -fPIC -Wall -c toto.c -gcc -shared -fPIC -o libtoto.so toto.o - all: $(EXEC) $(EXEC) : $(EXEC).o - $(CC) -o lib$(EXEC).so -shared $< - + $(CC) -fPIC -shared -o lib$(EXEC).so $< + %.o : %.c - $(CC) -c $< $(OPTIONS) + $(CC) $(CFLAGS) -c $< clean: @rm -rf *.o *.out