File: makefile.mingw

package info (click to toggle)
gpsim 0.32.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,640 kB
  • sloc: cpp: 121,258; asm: 54,223; ansic: 13,576; python: 9,708; sh: 4,695; makefile: 1,566; lex: 1,139; yacc: 854; pascal: 511; perl: 93; awk: 44; xml: 41
file content (56 lines) | stat: -rw-r--r-- 1,403 bytes parent folder | download | duplicates (4)
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
## 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 extras/ds1307 extras/ds1820 extras/dht11 extras/i2c2par

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

extras: include/gpsim extras-dht11

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

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