commit c3677bc6b86b0de35c05c1f350b9c347a3f18b8b parent 221bf817b81c2b3ff25abb70caa8135ada8a83a0 Author: oblique <psyberbits@gmail.com> Date: Fri, 22 Jun 2012 11:55:48 +0300 Makefile changes Diffstat:
M | Makefile | | | 10 | +++++----- |
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,12 +1,12 @@ -PREFIX ?= /usr -CC ?= $(CROSS_COMPILE)gcc -CFLAGS += -pthread +PREFIX ?= /usr/local +CC = $(CROSS_COMPILE)gcc +CFLAGS ?= -O2 SRCS = $(wildcard src/*.c) HDRS = $(wildcard src/*.h) OBJS = $(SRCS:%.c=%.o) -LIBS = +LIBS = -lpthread .PHONY: clean all install @@ -20,7 +20,7 @@ endif all: wificurse wificurse: $(OBJS) - $(CC) ${CFLAGS} $(LDFLAGS) $(LIBS) $(OBJS) -o $@ + $(CC) $(CFLAGS) $(LIBS) $(LDFLAGS) $(OBJS) -o $@ %.o: %.c $(HDRS) $(CC) $(CFLAGS) -c $< -o $@