Began implementing scrollbars, making listboxes contain a vertical scrollbar. Scrollb...
[xuni.git] / Makewin
blob97ee4a71476085a970e96c74ec3e09180679c0ca
1 # Makefile for xuni, Windows version
3 TARGET = xuni.exe
4 GDB = gdb
6 SRC = src
7 SRC_TARGETS = all depend clean wc
9 DOC = doc
11 # Default target: all
12 .PHONY: all
13 all:
15 # Targets relating to executables
16 .PHONY: run runa debug profile
17 run: all
18         $(TARGET)
19 runa: all
20         $(TARGET) $(ARGS)
21 debug: all
22         $(GDB) $(TARGET)
23 profile:
24         $(MAKE) -C $(SRC) clean all \
25             '$(shell grep -E "CFLAGS\s?=" $(SRC)/Makefile) -pg'
26         $(TARGET)
27         tempfile --directory . --prefix prof- --suffix .out > profile.name
28         gprof $(TARGET) > $(shell cat profile.name)
29         cp $(TARGET) $(TARGET)_profile
30         $(MAKE) -C $(SRC) clean
31         cp $(TARGET)_profile $(TARGET)
32         cat profile.name
33 viewprofile:
34         scite $(shell cat profile.name)
36 # Targets from and relating to src/
37 .PHONY: $(SRC)
38 $(SRC_TARGETS):
39         $(MAKE) -C $(SRC) $@
41 # Targets from and relating to doc/
42 .PHONY: $(DOC)
43 $(DOC):
44         $(MAKE) -C $(DOC)