Le makefile est parfait
parent
dc2c462f7e
commit
d84a86e92c
|
@ -8,16 +8,13 @@ CC=gcc
|
||||||
CFLAGS = -Wall -fPIC
|
CFLAGS = -Wall -fPIC
|
||||||
EXEC = currentsong
|
EXEC = currentsong
|
||||||
|
|
||||||
gcc -fPIC -Wall -c toto.c
|
|
||||||
gcc -shared -fPIC -o libtoto.so toto.o
|
|
||||||
|
|
||||||
all: $(EXEC)
|
all: $(EXEC)
|
||||||
|
|
||||||
$(EXEC) : $(EXEC).o
|
$(EXEC) : $(EXEC).o
|
||||||
$(CC) -o lib$(EXEC).so -shared $<
|
$(CC) -fPIC -shared -o lib$(EXEC).so $<
|
||||||
|
|
||||||
%.o : %.c
|
%.o : %.c
|
||||||
$(CC) -c $< $(OPTIONS)
|
$(CC) $(CFLAGS) -c $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rf *.o *.out
|
@rm -rf *.o *.out
|
||||||
|
|
Loading…
Reference in New Issue