Makefile
changeset 8 4d38ccbeb93e
parent 4 49edbdf9ebe7
child 10 9daa832ab9c4
equal deleted inserted replaced
7:446c0b816b91 8:4d38ccbeb93e
     1 LDFLAGS = -Llib/libevent-dev/lib -levent -lpng
     1 LDFLAGS = -Llib/libevent-dev/lib -levent -lpng
     2 CFLAGS = -Wall -g -Ilib/libevent-dev/include
     2 CFLAGS = -Wall -g -Ilib/libevent-dev/include
     3 
     3 
     4 OBJS = common.o mandelbrot.o render.o render_remote.o
       
     5 HEADERS = common.h mandelbrot.h render.h
       
     6 EXECS = render_file web_main render_node
     4 EXECS = render_file web_main render_node
     7 
     5 
     8 all: ${EXECS}
     6 all: render_file render_node web_main
     9 
     7 
    10 render_file: ${OBJS}
     8 common.o: common.c common.h
       
     9 remote_node.o: remote_node.c remote_node.h
       
    10 remote_pool.o: remote_pool.c remote_pool.h
       
    11 render.o: render.c render.h
       
    12 render_remote.o: render_remote.c render_remote.h
    11 
    13 
    12 web_main: ${OBJS}
    14 render_file.o: render_file.c
       
    15 render_node.o: render_node.c
       
    16 web_main.o: web_main.c
    13 
    17 
    14 render_node: ${OBJS}
    18 render_file: render_file.o common.o render.o mandelbrot.o
       
    19 render_node: render_node.o common.o render.o mandelbrot.o
       
    20 web_main: web_main.o common.o render.o remote_node.o remote_pool.o render_remote.o
    15 
    21 
    16 clean :
    22 clean :
    17 	rm ${OBJS}
    23 	rm *.o ${EXECS}
    18 	rm ${EXECS}
       
    19 
    24