Trying to put Makefile and Makewin under version control.
[xuni.git] / Makewin
blobe7ae83862871035894870b6866df171a9dbff6d1
1 # Makefile for xuni, Windows version
3 TARGET = xuni.exe
5 SRC = src
6 SRC_TARGETS = all xuni depend clean
8 DOC = doc
10 # Default target: all
11 .PHONY: all
12 all:
14 # Targets relating to executables
15 .PHONY: run runa debug profile
16 run: $(TARGET)
17         $(TARGET)
18 runa: $(TARGET)
19         $(TARGET) $(ARGS)
20 debug: $(TARGET)
21         $(GDB) $(TARGET)
22 profile: clean $(TARGET) clean
23         $(TARGET)
24         tempfile --directory . --prefix prof- --suffix .out > profile.name
25         gprof $(TARGET) > $(shell cat profile.name)
26         scite $(shell cat profile.name)
28 # Targets from and relating to src/
29 .PHONY: $(SRC)
30 $(SRC_TARGETS):
31         $(MAKE) -C $(SRC) $@
33 # Targets from and relating to doc/
34 .PHONY: $(DOC)
35 $(DOC):
36         #$(MAKE) -C $(DOC)
37         cd $(DOC); rm -r html; doxygen Doxyfile