Makefile
author Tero Marttila <terom@fixme.fi>
Fri, 06 Jun 2008 03:24:22 +0300
changeset 8 4d38ccbeb93e
parent 4 49edbdf9ebe7
child 10 9daa832ab9c4
permissions -rw-r--r--
* fix Makefile to build in a (more) sensible way (still not really perfect)
* a parse_hostport in common
* fix warnings in render_file
* commandline argument parsing for render_node
* render_remote takes a struct remote_node, maintains its current_load, and actually close the socket after use now
* web_main uses a remote_pool, accepts nodes on the command line, and picks nodes from there for render_remote
* improve _http_render_execute error handling, sends back an error reply now
* ignore SIGPIPE. This hadn't shown up before (probably read-EOF instead), but it uncovered a bug in evhttp that caused an infinite bufferevent_write loop -> oom_killer -> DoS attack
* yes, this commit is missing four new files, those will be included in the next one

committer: Tero Marttila <terom@fixme.fi>
LDFLAGS = -Llib/libevent-dev/lib -levent -lpng
CFLAGS = -Wall -g -Ilib/libevent-dev/include

EXECS = render_file web_main render_node

all: render_file render_node web_main

common.o: common.c common.h
remote_node.o: remote_node.c remote_node.h
remote_pool.o: remote_pool.c remote_pool.h
render.o: render.c render.h
render_remote.o: render_remote.c render_remote.h

render_file.o: render_file.c
render_node.o: render_node.c
web_main.o: web_main.c

render_file: render_file.o common.o render.o mandelbrot.o
render_node: render_node.o common.o render.o mandelbrot.o
web_main: web_main.o common.o render.o remote_node.o remote_pool.o render_remote.o

clean :
	rm *.o ${EXECS}