]> Sergey Matveev's repositories - nnn.git/commitdiff
Use CFLAGS too
authorsin <sin@2f30.org>
Tue, 21 Oct 2014 10:21:50 +0000 (11:21 +0100)
committersin <sin@2f30.org>
Tue, 21 Oct 2014 10:21:50 +0000 (11:21 +0100)
Makefile

index 3972d846f84ff74237e51c1ef44c5d80a7042b16..7cc1ee1d80e42015e236961888bca0fd20d12012 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,17 +7,17 @@ BIN = noice
 all: $(BIN)
 
 $(BIN): config.h $(OBJ)
-       $(CC) -o $@ $(OBJ) $(LDLIBS)
+       $(CC) $(CFLAGS) -o $@ $(OBJ) $(LDLIBS)
 
 config.h:
        @echo copying config.def.h to $@
        @cp config.def.h $@
 
 noice.o: noice.c queue.h util.h
-       $(CC) -c noice.c
+       $(CC) $(CFLAGS) -c noice.c
 
 strlcpy.o: strlcpy.c util.h
-       $(CC) -c strlcpy.c
+       $(CC) $(CFLAGS) -c strlcpy.c
 
 clean:
        rm -f $(BIN) $(OBJ)