Add missing header include.
[geany-mirror.git] / makefile.win32
blob54457df9b4f69febfd056970c58e98d01c702a8f
1 # Running make creates config.h then calls the sub makefiles.
3 # Other targets are:
4 #       deps: delete the dependencies so they are regenerated on next make
5 #       clean: clean all generated files
7 # localwin32.mk is an optional file to override make variables.
8 # Use localwin32.mk instead of editing variables as it is included in sub
9 # makefiles.
10 # localwin32.mk to set PREFIX instead of the default C:\libs
11 # For MSYS use localwin32.mk to set CP and RM.
12 # By default this will work in a Windows command prompt.
14 WINDRES = windres.exe
15 CC = gcc
16 CXX = g++
17 CP = copy
18 RM = del
19 MAKE = make
20 -include localwin32.mk
22 # Note: && is needed after cd because each line is executed in a different
23 # shell. (cd .. is just for clarity).
24 all: check-tools config.h
25         cd tagmanager && $(MAKE) -f makefile.win32 && cd ..
26         cd scintilla && $(MAKE) -f makefile.win32 && cd ..
27         cd plugins && $(MAKE) -f makefile.win32 && cd ..
28         cd src && $(MAKE) -f makefile.win32 && cd ..
30 # first check the required tools are installed
31 check-tools:
32         $(WINDRES) --version
33         $(CC) --version
34         $(CXX) --version
36 config.h: win32-config.h
37         $(CP) $< $@
39 deps:
40         -$(RM) tagmanager\deps.mak scintilla\deps.mak plugins\deps.mak src\deps.mak
42 # used by src/makefile.win32 to avoid del ../file which is an error
43 clean-local:
44         -$(RM) geany_private.res geany.exe
46 clean: deps
47         cd tagmanager && $(MAKE) -f makefile.win32 clean && cd ..
48         cd scintilla && $(MAKE) -f makefile.win32 clean && cd ..
49         cd plugins && $(MAKE) -f makefile.win32 clean && cd ..
50         cd src && $(MAKE) -f makefile.win32 clean && cd ..