~lasall/+junk/flashbench

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Arnd Bergmann
  • Date: 2011-02-16 17:17:37 UTC
  • Revision ID: git-v1:cf46806342ca3e6315059563e080a7aefde903db
flashbench: add an erase tool

This trivial tool can be used to erase block devices
using the BLKDISCARD ioctl. The tool does nothing
but calling that ioctl with the command line arguments.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
CFLAGS  := -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -g2
3
3
LDFLAGS := -lrt
4
4
 
5
 
all: flashbench
 
5
all: flashbench erase
6
6
 
7
7
dev.o: dev.c dev.h
8
8
vm.o: vm.c vm.h dev.h
10
10
 
11
11
flashbench: flashbench.o dev.o vm.o
12
12
 
 
13
erase: erase.o
 
14
 
13
15
clean:
14
16
        rm flashbench flashbench.o dev.o vm.o