kolibrios-gitea/programs/network/netsurf/libdom/examples/makefile
Dmitry Pereverzev (SoUrcerer) 370da47fa0 Netsurf initial port (still needs native ui and cURL)
git-svn-id: svn://kolibrios.org@3584 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-01 17:14:14 +00:00

19 lines
372 B
Makefile

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 $@ $<