From 7720bddf683ee04fecc33194bc7872e802dd7d29 Mon Sep 17 00:00:00 2001 From: cwabbott Date: Sun, 19 Dec 2010 16:31:44 +0000 Subject: [PATCH] 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 --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 050e25bdc..de9ca086f 100644 --- a/Makefile +++ b/Makefile @@ -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 $*