blob: 2d0455345b6d2690e21278e6414e43f697a32e4e (
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/libxml test/data/html/misnested.html
CC := gcc
LD := gcc
CFLAGS := `pkg-config --cflags libhubbub` `xml2-config --cflags`
LDFLAGS := `pkg-config --libs libhubbub` `xml2-config --libs`
SRC := libxml.c
libxml: $(SRC:.c=.o)
@$(LD) -o $@ $^ $(LDFLAGS)
.PHONY: clean
clean:
$(RM) libxml $(SRC:.c=.o)
%.o: %.c
@$(CC) -c $(CFLAGS) -o $@ $<
|