diff options
| author | Mattias Andrée <m@maandree.se> | 2026-06-04 19:05:04 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-06-04 19:05:04 +0200 |
| commit | 0a4371efcadf68f49a763964226eb8e8bd4d44ec (patch) | |
| tree | 3e2e2fd5b404df7bdc53877d0bee5bae61a2b0c2 /Makefile | |
| download | blkseekr-0a4371efcadf68f49a763964226eb8e8bd4d44ec.tar.gz blkseekr-0a4371efcadf68f49a763964226eb8e8bd4d44ec.tar.bz2 blkseekr-0a4371efcadf68f49a763964226eb8e8bd4d44ec.tar.xz | |
First commit
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..99af225 --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +.POSIX: + +CONFIGFILE = config.mk +include $(CONFIGFILE) + +OBJ =\ + blkseekr.o + +HDR = + +all: blkseekr +$(OBJ): $(HDR) + +.c.o: + $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) + +blkseekr: $(OBJ) + $(CC) -o $@ $(OBJ) $(LDFLAGS) + +install: blkseekr + mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/" + cp -- blkseekr "$(DESTDIR)$(PREFIX)/bin/" +# TODO cp -- blkseekr.1 "$(DESTDIR)$(MANPREFIX)/man1/" + +uninstall: + -rm -f -- "$(DESTDIR)$(PREFIX)/bin/blkseekr" + -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/blkseekr.1" + +clean: + -rm -f -- *.o *.a *.lo *.su *.so *.so.* *.gch *.gcov *.gcno *.gcda + -rm -f -- blkseekr + +.SUFFIXES: +.SUFFIXES: .o .c + +.PHONY: all install uninstall clean |
