Le makefile est parfait

master
Philippe Pittoli 2011-10-26 23:32:29 +02:00
parent dc2c462f7e
commit d84a86e92c
1 changed files with 3 additions and 6 deletions

View File

@ -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