commit 221bf817b81c2b3ff25abb70caa8135ada8a83a0
parent decf74197a0595b7d4bbea869ca2193971569928
Author: oblique <psyberbits@gmail.com>
Date: Thu, 21 Jun 2012 23:44:28 -0700
Merge pull request #1 from dastergon/master
Makefile changes
Diffstat:
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 $@