24 lines · 538 B · Text
RawDownload
# 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 := gccLD := gcc CFLAGS := `pkg-config --cflags libdom` `pkg-config --cflags libwapcaplet` -Wall -O0 -gLDFLAGS := `pkg-config --libs libdom` `pkg-config --libs libwapcaplet` SRC := dom-structure-dump.c dom-structure-dump: $(SRC:.c=.o)	@$(LD) -o $@ $^ $(LDFLAGS) .PHONY: cleanclean:	$(RM) dom-structure-dump $(SRC:.c=.o) %.o: %.c	@$(CC) -c $(CFLAGS) -o $@ $<