Our cross-compiled builds were failing when they tried to link in the library built with the native linux compiler and archiver; this fixes that without changing the intent.

GNU-based make will handle this syntax correctly; if other makes have trouble with it, we'll have to do something different.
This commit is contained in:
tbrennan3
2010-02-26 15:43:18 +00:00
parent 49b4c6cd35
commit 42c01e92f6
+5 -3
View File
@@ -1,8 +1,10 @@
#Makefile to build BACnet Library with GCC
# tools
CC = gcc
AR = ar
# tools
# ('?=' sets them to gcc and ar unless they are already defined for
# a board-specific cross-compiler and archiver)
CC ?= gcc
AR ?= ar
# target
TARGET = bacnet