blob: 8e1da17b938748d4323aa55d954d7f1962fb1c2b (
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
|
# From the top level:
#
# make -C examples -f example.mk clean
# make -C examples -f example.mk
# ./examples/dom-structure-dump examples/files/test.html
CC := gcc
LD := gcc
CFLAGS := `pkg-config --cflags libdom` `pkg-config --cflags libwapcaplet` -Wall -O0 -g
LDFLAGS := `pkg-config --libs libdom` `pkg-config --libs libwapcaplet`
SRC := dom-structure-dump.c
dom-structure-dump: $(SRC:.c=.o)
@$(LD) -o $@ $^ $(LDFLAGS)
.PHONY: clean
clean:
$(RM) dom-structure-dump $(SRC:.c=.o)
%.o: %.c
@$(CC) -c $(CFLAGS) -o $@ $<
|