1 # Makefile for xuni, Linux version
6 SRC_TARGETS
= all xuni depend
clean
14 # Targets relating to executables
15 .PHONY
: run runa debug profile
22 profile
: clean $(TARGET
) clean
24 tempfile
--directory .
--prefix prof-
--suffix .out
> profile.name
25 gprof
$(TARGET
) > $(shell cat profile.name
)
26 kprof
-f
$(shell cat profile.name
)
28 # Targets from and relating to src/
33 # Targets from and relating to doc/
37 cd
$(DOC
); rm -r html
; doxygen Doxyfile
40 .PHONY
: memcheck permissions
42 valgrind
--leak-check
=full
-v .
/$(TARGET
) 2>&1\
43 | tee valgrind.output | less
45 chmod
644 $(shell find
-type f
)
46 chmod
755 $(shell find
-type d
) $(TARGET
) $(TARGET
).exe