Added CROSS_COMPILE prefix to Makefile.

This commit is contained in:
Darell Tan 2012-12-11 23:39:24 +08:00
parent e0bf7227b1
commit 4a32af1988

View File

@ -7,6 +7,12 @@ CFLAGS += -Wall -pedantic -std=gnu99
CFLAGS += -O2 -DNDEBUG CFLAGS += -O2 -DNDEBUG
LDLIBS = -lpthread LDLIBS = -lpthread
ifneq ($(CROSS_COMPILE),)
CC = gcc
CC := $(CROSS_COMPILE)$(CC)
AR := $(CROSS_COMPILE)$(AR)
endif
BIN=testmdnsd BIN=testmdnsd
LIBTINYSVCMDNS_OBJS = mdns.o mdnsd.o LIBTINYSVCMDNS_OBJS = mdns.o mdnsd.o