[so] [Tema4]Makefile

Adriana Bogza adriana.bogza at gmail.com
Sat May 18 18:17:39 EEST 2013


Buna ziua,

Si eu am o problema cu Makefile-ul, pe Linux. Am uploadat tema pe vmchecker
si primesc eroarea:

checker: testing
make: Warning: File `Makefile.checker' has modification time 2.4e+02 s in
the future
make: *** No rule to make target `libscheduler.so', needed by
`_test/run_test'.

Makefile-ul meu arata asa:

build: libscheduler.so

libscheduler.so: so_scheduler.o priority_queue.o
gcc -shared so_scheduler.o priority_queue.o -o libscheduler.so -lpthread

so_scheduler.o:
gcc -fPIC -Wall -c so_scheduler.c -lpthread

priority_queue.o:
gcc -fPIC -Wall -c priority_queue.c

clean:
rm *.o *.so

Am target-ul build. Alte idei de la ce ar putea fi?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20130518/ed37cf0d/attachment.html>


More information about the so mailing list