diff options
author | Mattias Andrée <maandree@kth.se> | 2023-11-17 18:25:16 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-11-17 18:25:16 +0100 |
commit | 53b1ee331f7bf40a1db1edfed863695a104b4e1e (patch) | |
tree | ca484ee59c1733dbbdafd86cfee50192421fb15b /Makefile | |
download | sshexec-53b1ee331f7bf40a1db1edfed863695a104b4e1e.tar.gz sshexec-53b1ee331f7bf40a1db1edfed863695a104b4e1e.tar.bz2 sshexec-53b1ee331f7bf40a1db1edfed863695a104b4e1e.tar.xz |
First commit
Signed-off-by: Mattias Andrée <maandree@kth.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..9dc18bf --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +.POSIX: + +CONFIGFILE = config.mk +include $(CONFIGFILE) + +OBJ =\ + sshexec.o + +HDR = + +all: sshexec +$(OBJ): $(HDR) + +.c.o: + $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) + +sshexec: $(OBJ) + $(CC) -o $@ $(OBJ) $(LDFLAGS) + +install: sshexec + mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/" + cp -- sshexec "$(DESTDIR)$(PREFIX)/bin/" + cp -- sshexec.1 "$(DESTDIR)$(MANPREFIX)/man1/" + +uninstall: + -rm -f -- "$(DESTDIR)$(PREFIX)/bin/sshexec" + -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/sshexec.1" + +clean: + -rm -f -- *.o *.a *.lo *.su *.so *.so.* *.gch *.gcov *.gcno *.gcda + -rm -f -- sshexec + +.SUFFIXES: +.SUFFIXES: .o .c + +.PHONY: all install uninstall clean |