Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. CC := gcc
  2. LD := gcc
  3.  
  4. CFLAGS := `pkg-config --cflags libdom` `pkg-config --cflags libwapcaplet` -Wall -O0 -g
  5. LDFLAGS := `pkg-config --libs libdom` `pkg-config --libs libwapcaplet`
  6.  
  7. SRC := dom-structure-dump.c
  8.  
  9. dom-structure-dump: $(SRC:.c=.o)
  10.         @$(LD) -o $@ $^ $(LDFLAGS)
  11.  
  12. .PHONY: clean
  13. clean:
  14.         $(RM) dom-structure-dump $(SRC:.c=.o)
  15.  
  16. %.o: %.c
  17.         @$(CC) -c $(CFLAGS) -o $@ $<
  18.  
  19.