File: makefile.mingw

package info (click to toggle)
gpsim 0.26.1-2.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 11,200 kB
  • sloc: cpp: 86,839; sh: 18,875; asm: 16,815; ansic: 4,468; makefile: 1,308; lex: 1,129; yacc: 823; pascal: 177; perl: 93; awk: 44
file content (66 lines) | stat: -rw-r--r-- 1,684 bytes parent folder | download
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
## Makefile for building the gpsim with gcc for mingw. The build
## uses tools running on cygwin, however.

## Use: make -f makefile.mingw

PARTS=cli src src/dspic gui gpsim modules
CLEAN_PARTS=$(PARTS)

.PHONY: all doc setup clean

all:
	for D in $(PARTS); do $(MAKE) -C $$D -f makefile.mingw all; done

doc:
	$(MAKE) -C doc -f makefile.mingw all

setup: all doc extras
	$(MAKE) -C plat/win32 -f makefile.mingw all

clean: clean-extras
	rm -f config.h
	for D in $(CLEAN_PARTS); do $(MAKE) -C $$D -f makefile.mingw clean; done

################
# The mingw makefiles don't handle dependencies well. However this little
# hack can  work around this:
#
# $ make -f makefile.mingw depend
# $ make -f mf

MF=mf
depend:
	for D in $(PARTS); do $(MAKE) -C $$D -f makefile.mingw depend; done
	@echo "# Automatically generated makefile" > ${MF}
	@echo "include makefile.mingw"  >> ${MF}


################ The extras modules

.PHONY: extras extras-usart-con extras-graphic-lcd extras-lcd

EXTRAS=extras/graphic_lcd/src extras/lcd

include/gpsim:
	mkdir -p include; ln -s ../src include/gpsim

extras: include/gpsim extras-graphic-lcd extras-lcd extras-ds1307

extras-graphic-lcd:
	export GPSIM_DEF_PATH=../../../plat/win32; \
	export GPSIM_LIB_PATH=../../../src; \
	$(MAKE) -C extras/graphic_lcd/src -f makefile.mingw

extras-lcd:
	export GPSIM_DEF_PATH=../../plat/win32; \
	export GPSIM_LIB_PATH=../../src; \
	$(MAKE) -C extras/lcd -f makefile.mingw

extras-ds1307:
	export GPSIM_DEF_PATH=../../plat/win32; \
	export GPSIM_LIB_PATH=../../src; \
	$(MAKE) -C extras/ds1307 -f makefile.mingw

clean-extras:
	for D in $(EXTRAS); do $(MAKE) -C $$D -f makefile.mingw clean; done; \
	rm -rf include