Program to generate an xml file based on a provided text file
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
458B

  1. CC=gcc
  2. BINDIR=out
  3. DEBUG_FLAGS=-Wall -Werror
  4. CFLAGS=$(DEBUG_FLAGS) -ggdb $(shell pkg-config libxml-2.0 --cflags) -ansi
  5. LDFLAGS=$(shell pkg-config libxml-2.0 --libs)
  6. BINARY=generarxml
  7. OBJS = \
  8. main.o \
  9. readconfig.o
  10. all: bin
  11. bin: $(OBJS)
  12. $(CC) $(xml2-config --cflags --libs) $(CFLAGS) $(OBJS) $(LDFLAGS) \
  13. -o $(BINDIR)/$(BINARY)
  14. clean:
  15. rm -fR $(BINDIR)/$(BINARY) *.o
  16. %.o: %.c
  17. $(CC) $(xml2-config --cflags --libs) $(CFLAGS) -c $< -o $@ $(LDFLAGS)