author | A.M. Thurnherr <athurnherr@yahoo.com> |
Tue, 29 Jun 2021 09:14:43 -0400 | |
changeset 23 | e83393696a24 |
parent 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 |