Makefile
changeset 19 d18606bb6f20
parent 18 86f2e5b7191b
child 23 31307efd7e78
equal deleted inserted replaced
18:86f2e5b7191b 19:d18606bb6f20
     1 LDFLAGS = -Llib/libevent-dev/lib -levent -lpng
     1 LDFLAGS = -Llib/libevent-dev/lib -levent -lpng -pthread
     2 CFLAGS = -Wall -g -Ilib/libevent-dev/include
     2 CFLAGS = -Wall -g -Ilib/libevent-dev/include
     3 
     3 
     4 EXECS = file_main web_main node_main
     4 EXECS = file_main web_main node_main
     5 
     5 
     6 all: web_main file_main node_main
     6 all: web_main file_main node_main
     7 
     7 
     8 common.o: common.c common.h
     8 common.o: common.c common.h
     9 http.o: http.c http.h
     9 http.o: http.c http.h common.o
    10 remote_node.o: remote_node.c remote_node.h
    10 remote_node.o: remote_node.c remote_node.h common.o
    11 remote_pool.o: remote_pool.c remote_pool.h
    11 remote_pool.o: remote_pool.c remote_pool.h common.o
    12 render.o: render.c render.h
    12 render.o: render.c render.h common.o
    13 render_remote.o: render_remote.c render_remote.h
    13 render_remote.o: render_remote.c render_remote.h common.o
    14 render_png.o: render_png.c render_png.h
    14 render_png.o: render_png.c render_png.h common.o
    15 render_raw.o: render_raw.c render_raw.h
    15 render_raw.o: render_raw.c render_raw.h common.o
    16 render_local.o: render_local.c render_local.h
    16 render_local.o: render_local.c render_local.h common.o
    17 render_multi.o: render_multi.c render_multi.h render_remote.h
    17 render_multi.o: render_multi.c render_multi.h render_remote.o common.o
    18 render_mandelbrot.o: render_mandelbrot.c render_mandelbrot.h
    18 render_mandelbrot.o: render_mandelbrot.c render_mandelbrot.h common.o
    19 render_slices.o: render_slices.c render_slices.h
    19 render_slices.o: render_slices.c render_slices.h common.o
       
    20 render_threads.o: render_threads.c render_threads.h common.o
    20 
    21 
    21 file_main.o: file_main.c
    22 file_main.o: file_main.c
    22 node_main.o: node_main.c
    23 node_main.o: node_main.c
    23 web_main.o: web_main.c
    24 web_main.o: web_main.c
    24 
    25 
    25 file_main: file_main.o common.o render.o render_raw.o render_png.o render_local.o render_mandelbrot.o
    26 file_main: file_main.o common.o render.o render_raw.o render_png.o render_local.o render_mandelbrot.o
    26 node_main: node_main.o common.o render.o render_raw.o render_png.o render_local.o render_mandelbrot.o
    27 node_main: node_main.o common.o render.o render_raw.o render_png.o render_local.o render_slices.o render_threads.o render_mandelbrot.o
    27 web_main: web_main.o common.o http.o render.o render_png.o remote_node.o remote_pool.o render_remote.o render_multi.o render_slices.o
    28 web_main: web_main.o common.o http.o render.o render_png.o remote_node.o remote_pool.o render_remote.o render_multi.o render_slices.o
    28 
    29 
    29 clean :
    30 clean :
    30 	rm *.o ${EXECS}
    31 	rm *.o ${EXECS}
    31 
    32