File: makefile.win32

package info (click to toggle)
geany 0.19.1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 15,216 kB
  • ctags: 12,981
  • sloc: ansic: 75,212; cpp: 36,044; sh: 9,336; python: 660; makefile: 622; xml: 119; cs: 64; java: 58; perl: 49; ada: 42; fortran: 41; tcl: 31; asm: 27; sql: 22; ruby: 6; php: 1
file content (50 lines) | stat: -rw-r--r-- 1,541 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Running make creates config.h then calls the sub makefiles.
#
# Other targets are:
#	deps: delete the dependencies so they are regenerated on next make
#	clean: clean all generated files
#
# localwin32.mk is an optional file to override make variables.
# Use localwin32.mk instead of editing variables as it is included in sub
# makefiles.
# localwin32.mk to set PREFIX instead of the default C:\libs
# For MSYS use localwin32.mk to set CP and RM.
# By default this will work in a Windows command prompt.

WINDRES = windres.exe
CC = gcc
CXX = g++
CP = copy
RM = del
MAKE = make
-include localwin32.mk

# Note: && is needed after cd because each line is executed in a different
# shell. (cd .. is just for clarity).
all: check-tools config.h
	cd tagmanager && $(MAKE) -f makefile.win32 && cd ..
	cd scintilla && $(MAKE) -f makefile.win32 && cd ..
	cd plugins && $(MAKE) -f makefile.win32 && cd ..
	cd src && $(MAKE) -f makefile.win32 && cd ..

# first check the required tools are installed
check-tools:
	$(WINDRES) --version
	$(CC) --version
	$(CXX) --version

config.h: win32-config.h
	$(CP) $< $@

deps:
	-$(RM) tagmanager\deps.mak scintilla\deps.mak plugins\deps.mak src\deps.mak

# used by src/makefile.win32 to avoid del ../file which is an error
clean-local:
	-$(RM) geany_private.res geany.exe

clean: deps
	cd tagmanager && $(MAKE) -f makefile.win32 clean && cd ..
	cd scintilla && $(MAKE) -f makefile.win32 clean && cd ..
	cd plugins && $(MAKE) -f makefile.win32 clean && cd ..
	cd src && $(MAKE) -f makefile.win32 clean && cd ..