X-Git-Url: https://git.llucax.com/z.facultad/75.42/calculadora.git/blobdiff_plain/f7547b1b03c5f2554012658ef7aeafee91c7227c..a8a23ec5e446b056284de0976cc1f3344ee8c6ad:/Makefile diff --git a/Makefile b/Makefile index f5a610a..98e0483 100644 --- a/Makefile +++ b/Makefile @@ -14,20 +14,28 @@ # # Opciones para el compilador. -CFLAGS=-ansi -pedantic -Wall -g3 +CFLAGS=-ansi -pedantic -Wall -g3 -DDEBUG +CC=gcc-3.2 +# Pruebas. +TESTS=dllist_test memdebug_test parser_equation_test # Programa a compilar. -TARGETS= +TARGETS=$(TESTS) # Regla por defecto. all: tp1 # Pruebas. -tests: dllist_test +tests: $(TESTS) ./dllist_test + ./memdebug_test dllist_test: dllist.o +memdebug_test: dllist.o meminfo.o memdebug.o + +parser_equation_test: dllist.o parseerror.o equation.o parser_equation.o + tp1: $(TARGETS) # Regla para borrar.