add CFLAGS and LDFLAGS at Makefile

This commit is contained in:
oblique 2012-02-29 19:01:14 +02:00
parent 225b545a03
commit 64cfcc71b4

@ -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