1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

Fixes makefile to make "make uavobjects" work on Windows. Changed "make sim_win32" accordingly.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2255 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
cwabbott 2010-12-19 16:31:44 +00:00 committed by cwabbott
parent 1ef88e854b
commit 7720bddf68

View File

@ -7,12 +7,15 @@ DL_DIR=$(ROOT_DIR)/downloads
# We almost need to consider autoconf/automake instead of this
# I don't know if windows supports uname :-(
QT_SPEC=win32-g++
UAVOBJGENERATOR="$(BUILD_DIR)/uavobjgenerator/debug/uavobjgenerator.exe"
UNAME := $(shell uname)
ifeq ($(UNAME), Linux)
QT_SPEC=linux-g++
UAVOBJGENERATOR="$(BUILD_DIR)/uavobjgenerator/uavobjgenerator"
endif
ifeq ($(UNAME), Darwin)
QT_SPEC=macx-g++
UAVOBJGENERATOR="$(BUILD_DIR)/uavobjgenerator/uavobjgenerator"
endif
# Set up misc host tools
@ -206,7 +209,7 @@ uavobjgenerator:
.PHONY: uavobjects
uavobjects: uavobjgenerator
mkdir -p $(BUILD_DIR)/$@
"$(BUILD_DIR)/uavobjgenerator/uavobjgenerator" "$(ROOT_DIR)/"
$(UAVOBJGENERATOR) "$(ROOT_DIR)/"
##############################
#
@ -241,6 +244,6 @@ sim_posix_%: uavobjects
.PHONY: sim_win32
sim_win32: sim_win32_exe
sim_win32_%: #uavobjects
sim_win32_%: uavobjects
mkdir -p $(BUILD_DIR)/simulation
$(MAKE) OUTDIR="$(BUILD_DIR)/simulation" -C $(ROOT_DIR)/flight/OpenPilot --file=$(ROOT_DIR)/flight/OpenPilot/Makefile.win32 $*