changeset 15 | 3746197831db |
14:f7f35d9629ab | 15:3746197831db |
---|---|
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 |