summaryrefslogtreecommitdiff
path: root/render/makefile
blob: 5630b6a3383f01e20929cf6d7db58967eec697f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# $Id: makefile,v 1.1.1.1 2002/04/22 09:24:34 bursa Exp $

FLAGS = -g -Wall -W -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual \
-Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -std=c9x
CC = gcc

render: render.o utils.o css.o css_enum.o
	$(CC) $(FLAGS) `xml2-config --libs` -o render render.o utils.o css.o css_enum.o

render.o: render.c css.h css_enum.h utils.h
	$(CC) $(FLAGS) `xml2-config --cflags` -c render.c

css.o: css.c css.h css_enum.h utils.h
	$(CC) $(FLAGS) -c css.c

utils.o: utils.c utils.h
	$(CC) $(FLAGS) -c utils.c

css_enum.o: css_enum.c css_enum.h
	$(CC) $(FLAGS) -c css_enum.c

css_enum.c css_enum.h: css_enums makeenum
	./makeenum css_enum < css_enums