5 Debian patches touch this file
-
Add install target with $(DESTDIR) support.
- Author
- Martin Steigerwald <[email protected]>
-
Add actually use CFLAGS.
- Author
- Martin Steigerwald <[email protected]>
-
Change makefile to build with hardening flags.
- Author
- Martin Steigerwald <[email protected]>
-
Makefile: Disable test in order to ease workload on build servers.
- Author
- Martin Steigerwald <[email protected]
-
Change makefile to link the executable dynamically.
- Author
- Martin Steigerwald <[email protected]>
| 1 | # |
| 2 | # Simple makefile for file latency test program |
| 3 | # |
| 4 | # fs_mark.c is a modified version of Larry McVoy's lmbench program. |
| 5 | # |
| 6 | # Modifications include using fsync after wrting to flush to disk and changes to check return |
| 7 | # values from syscalls. |
| 8 | # |
| 9 | |
| 10 | COBJS= fs_mark.o lib_timing.o |
| 11 | CFLAGS+= -O2 -Wall -D_FILE_OFFSET_BITS=64 |
| 12 | |
| •13 | BIN=$(DESTDIR)/usr/bin |
| 14 | |
| 15 | all: fs_mark |
| 16 | |
| 17 | fs_mark.o: fs_mark.c fs_mark.h |
| 18 | |
| 19 | fs_mark: fs_mark.o lib_timing.o |
| •20 | ${CC} ${CFLAGS} ${LDFLAGS} -o fs_mark fs_mark.o lib_timing.o |
| 21 | |
| •22 | install: |
| •23 | install -d $(BIN) |
| 24 | install ./fs_mark $(BIN) |
| 25 | |
| 26 | clean: |
| 27 | rm -f ${COBJS} fs_mark fs_log.txt |
| 28 |