Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Commit

Permalink
Detect Windows and ask cmake to generate MSYS makefiles for libswiftnav.
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmcmullin committed Jan 26, 2014
1 parent a3b53f1 commit 99292e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Q := @
MAKEFLAGS += --no-print-directory
endif

ifneq (,$(findstring W32,$(shell uname)))
CMAKEFLAGS += -G "MSYS Makefiles"
endif

ifndef PRN
MAKEFLAGS += $(warning PRN not defined, using default PRN (22) for tests, specify the PRN with 'make PRN=22')PRN=22
else
Expand Down Expand Up @@ -41,7 +45,7 @@ libopencm3:
libswiftnav:
@printf "BUILD libswiftnav\n"; \
mkdir -p libswiftnav/build; cd libswiftnav/build; \
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-gcc-arm-embedded.cmake ../
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-gcc-arm-embedded.cmake $(CMAKEFLAGS) ../

$(MAKE) -C libswiftnav/build $(MAKEFLAGS)
clean:
Expand Down

0 comments on commit 99292e8

Please sign in to comment.