24 lines · 464 B · Text
RawDownload
# 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 := gccLD := 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: cleanclean:	$(RM) libxml $(SRC:.c=.o) %.o: %.c	@$(CC) -c $(CFLAGS) -o $@ $<