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.
 
 
 
 

37 lines
768 B

  1. CC=gcc
  2. BINDIR=out
  3. DEBUG_FLAGS=-Wall -Werror
  4. CFLAGS=$(DEBUG_FLAGS) -ggdb -Wconversion -std=c11 -D_DEFAULT_SOURCE $(shell pkg-config libxml-2.0 --cflags) -ansi
  5. LDFLAGS=$(shell pkg-config libxml-2.0 --libs)
  6. #CPPFLAGS
  7. # DEBUG: show debug information during runtime
  8. # DEBUG_ENCODING: show debug information related to encoding at runtime
  9. CPPFLAGS=-DDEBUG
  10. BINARY=generarxml
  11. OBJS = \
  12. main.o \
  13. readconfig.o \
  14. readfile.o \
  15. encoding.o \
  16. string.o
  17. all: bin
  18. bin: $(OBJS)
  19. $(CC)$(xml2-config --cflags --libs) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $(BINDIR)/$(BINARY)
  20. cp *.conf $(BINDIR)/
  21. cp *.dtd $(BINDIR)/
  22. cp Biblia.txt $(BINDIR)/
  23. clean:
  24. rm -fR $(BINDIR)/* *.o
  25. %.o: %.c
  26. $(CC)$(xml2-config --cflags --libs) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -c $< -o $@