author | A.M. Thurnherr <athurnherr@yahoo.com> |
Mon, 23 Feb 2015 09:19:46 +0000 | |
changeset 15 | 3746197831db |
permissions | -rw-r--r-- |
15 | 1 |
# For using the debian (ubuntu) mingw cross compiler package |
2 |
# to compile a windows executable. |
|
3 |
# There is no install target. |
|
4 |
# *.o is removed before and after running make, |
|
5 |
# to avoid conflicts with the normal non-cross make |
|
6 |
||
7 |
||
8 |
CC=i586-mingw32msvc-gcc |
|
9 |
||
10 |
all: clean magdec.exe |
|
11 |
||
12 |
magdec.exe: geomag_calc.o magdec.o Makefile.mingw32cross igrf11.h |
|
13 |
$(CC) -o $@ geomag_calc.o magdec.o -lm |
|
14 |
$(RM) *.o |
|
15 |
||
16 |
clean: |
|
17 |
$(RM) *.o |
|
18 |