[PATCH] Makefile: make sure to keep CFLAGS for link
authorJens Axboe <axboe@suse.de>
Fri, 16 Sep 2005 11:31:35 +0000 (13:31 +0200)
committerJens Axboe <axboe@suse.de>
Fri, 16 Sep 2005 11:31:35 +0000 (13:31 +0200)
Makefile

index 56a7b53b5f378270d785ba5d9e4cda8e594001ea..9cec11b6ec071dc54c61080b3308a21d53d7ecef 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,10 @@ SCRIPTS        = btrace
 all: $(PROGS) $(SCRIPTS)
 
 blkparse: blkparse.o rbtree.o
+       $(CC) $(CFLAGS) -o $@ $(filter %.o,$^)
+
 blktrace: blktrace.o $(LIBS)
+       $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) $(LIBS)
 
 clean:
        -rm -f *.o $(PROGS)