Proyecto de ordenamiento para el curso de Análisis y Diseño de Algoritmos.
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.

Makefile 687B

1234567891011121314151617181920212223242526272829303132333435
  1. CC=gcc
  2. CFLAGS=-Wall -Isrc/include -DDEBUG -g
  3. LDFLAGS=-lm
  4. SRC=src/sort.c src/random.c src/bubble_sort.c src/timer.c src/counting_sort.c src/quick_sort.c src/merge_sort.c src/bitonic_sort.c src/selection_sort.c
  5. OBJ=$(SRC:.c=.o)
  6. all: sort informe
  7. sort: $(OBJ)
  8. $(CC) -o $@ $^ $(LDFLAGS)
  9. informe:
  10. # if pdflatex is installed create the informe
  11. ifneq (, $(shell which pdflatex))
  12. make -C doc
  13. mv doc/Informe.pdf Informe.pdf
  14. endif
  15. test:
  16. make -C test
  17. test/test
  18. clean: cleansort cleaninforme cleantest
  19. cleansort:
  20. rm -f src/*.o sort
  21. cleaninforme:
  22. make -C doc clean
  23. rm -f Informe.pdf
  24. cleantest:
  25. make -C test clean
  26. .PHONY: all sort informe test clean cleansort cleaninforme cleantest