commit 64cfcc71b4224151f826c0f5eaaccd6bd1dd8873
parent 225b545a0326dcbd9cead9bd17e12f32bd6bf3ee
Author: oblique <psyberbits@gmail.com>
Date: Wed, 29 Feb 2012 19:01:14 +0200
add CFLAGS and LDFLAGS at Makefile
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -4,10 +4,10 @@ OBJS = wificurse.o error.o
all: wificurse
wificurse: $(OBJS)
- $(CC) -o $@ $^
+ $(CC) $(LDFLAGS) -o $@ $(OBJS)
%.o: %.c %.h
- $(CC) -c -o $@ $<
+ $(CC) $(CFLAGS) -c -o $@ $<
clean:
@rm -f *~ *.o wificurse