btrfs-progs: test: add default ioctl-test build
Add another target that'll use default compiler options, eg. if we don't know the bitness of the architecture or gcc does not recognize the -m32/-m64 options. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
6f306e8d62
commit
e0c979343d
13
Makefile.in
13
Makefile.in
|
@ -392,6 +392,10 @@ quick-test: $(objects) $(libs) quick-test.o
|
||||||
@echo " [LD] $@"
|
@echo " [LD] $@"
|
||||||
$(Q)$(CC) $(CFLAGS) -o quick-test $(objects) $(libs) quick-test.o $(LDFLAGS) $(LIBS)
|
$(Q)$(CC) $(CFLAGS) -o quick-test $(objects) $(libs) quick-test.o $(LDFLAGS) $(LIBS)
|
||||||
|
|
||||||
|
ioctl-test.o: ioctl-test.c ioctl.h kerncompat.h ctree.h
|
||||||
|
@echo " [CC] $@"
|
||||||
|
$(Q)$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
ioctl-test-32.o: ioctl-test.c ioctl.h kerncompat.h ctree.h
|
ioctl-test-32.o: ioctl-test.c ioctl.h kerncompat.h ctree.h
|
||||||
@echo " [CC32] $@"
|
@echo " [CC32] $@"
|
||||||
$(Q)$(CC) $(CFLAGS) -m32 -c $< -o $@
|
$(Q)$(CC) $(CFLAGS) -m32 -c $< -o $@
|
||||||
|
@ -400,6 +404,12 @@ ioctl-test-64.o: ioctl-test.c ioctl.h kerncompat.h ctree.h
|
||||||
@echo " [CC64] $@"
|
@echo " [CC64] $@"
|
||||||
$(Q)$(CC) $(CFLAGS) -m64 -c $< -o $@
|
$(Q)$(CC) $(CFLAGS) -m64 -c $< -o $@
|
||||||
|
|
||||||
|
ioctl-test: ioctl-test.o
|
||||||
|
@echo " [LD] $@"
|
||||||
|
$(Q)$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
||||||
|
@echo " ?[PAHOLE] $@.pahole"
|
||||||
|
-$(Q)pahole $@ > $@.pahole
|
||||||
|
|
||||||
ioctl-test-32: ioctl-test-32.o
|
ioctl-test-32: ioctl-test-32.o
|
||||||
@echo " [LD32] $@"
|
@echo " [LD32] $@"
|
||||||
$(Q)$(CC) $(CFLAGS) -m32 -o $@ $< $(LDFLAGS)
|
$(Q)$(CC) $(CFLAGS) -m32 -o $@ $< $(LDFLAGS)
|
||||||
|
@ -412,8 +422,9 @@ ioctl-test-64: ioctl-test-64.o
|
||||||
@echo " ?[PAHOLE] $@.pahole"
|
@echo " ?[PAHOLE] $@.pahole"
|
||||||
-$(Q)pahole $@ > $@.pahole
|
-$(Q)pahole $@ > $@.pahole
|
||||||
|
|
||||||
test-ioctl: ioctl-test-32 ioctl-test-64
|
test-ioctl: ioctl-test ioctl-test-32 ioctl-test-64
|
||||||
@echo " [TEST/ioctl]"
|
@echo " [TEST/ioctl]"
|
||||||
|
$(Q)./ioctl-test > ioctl-test.log
|
||||||
$(Q)./ioctl-test-32 > ioctl-test-32.log
|
$(Q)./ioctl-test-32 > ioctl-test-32.log
|
||||||
$(Q)./ioctl-test-64 > ioctl-test-64.log
|
$(Q)./ioctl-test-64 > ioctl-test-64.log
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue