commit 1eb7aabb09cb5dab1748a1471166a4cc769d1fdb parent decf74197a0595b7d4bbea869ca2193971569928 Author: Pavlos Ratis <dastergon@gmail.com> Date: Thu, 21 Jun 2012 22:37:10 +0300 fix Makefile Diffstat:
M | Makefile | | | 10 | +++++----- |
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,12 +1,12 @@ -PREFIX ?= /usr/local -CC = $(CROSS_COMPILE)gcc -CFLAGS ?= -O2 +PREFIX ?= /usr/ +CC ?= $(CROSS_COMPILE)gcc +CFLAGS += -pthread SRCS = $(wildcard src/*.c) HDRS = $(wildcard src/*.h) OBJS = $(SRCS:%.c=%.o) -LIBS = -lpthread +LIBS = .PHONY: clean all install @@ -20,7 +20,7 @@ endif all: wificurse wificurse: $(OBJS) - $(CC) $(LIBS) $(LDFLAGS) $(OBJS) -o $@ + $(CC) ${CFLAGS} $(LDFLAGS) $(LIBS) $(OBJS) -o $@ %.o: %.c $(HDRS) $(CC) $(CFLAGS) -c $< -o $@