The flag SDL_INIT_TIMER is now passed to SDL_Init() in init_sdl(), which allows the...
[xuni.git] / Makewin
blobccada7c7fe3526fc140ac3894451eda00d94dbbb
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
10 DIST = dist
12 SUBDIRS = $(DOC) $(DIST)
14 # Default target: all
15 .PHONY: all
16 all:
18 # Targets relating to executables
19 .PHONY: run runa debug profile
20 run: all
21         $(TARGET)
22 runa: all
23         $(TARGET) $(ARGS)
24 debug: all
25         $(GDB) $(TARGET)
26 profile:
27         $(MAKE) -C $(SRC) clean all \
28             '$(shell grep -E "CFLAGS\s?=" $(SRC)/Makefile) -pg'
29         $(TARGET)
30         tempfile --directory . --prefix prof- --suffix .out > profile.name
31         gprof $(TARGET) > $(shell cat profile.name)
32         cp $(TARGET) $(TARGET)_profile
33         $(MAKE) -C $(SRC) clean
34         cp $(TARGET)_profile $(TARGET)
35         cat profile.name
36 viewprofile:
37         scite $(shell cat profile.name)
39 # Targets from and relating to src/
40 .PHONY: $(SRC)
41 $(SRC_TARGETS):
42         $(MAKE) -C $(SRC) $@
44 # Targets from and relating to other subdirectories
45 .PHONY: $(SUBDIRS)
46 $(SUBDIRS):
47         $(MAKE) -C $@