Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
CFLAGS+= -Wall -I/usr/local/include
LDFLAGS+= -L/usr/local/lib/ -lssh2
CFLAGS = -Wall -I/usr/local/include
LDFLAGS = -L/usr/local/lib/ -lssh2

prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin

all: beleth

beleth: beleth.o lists.o ssh.o
$(CC) beleth.o lists.o ssh.o $(LDFLAGS) -o beleth
$(CC) beleth.o lists.o ssh.o $(LDFLAGS) -o $@

beleth.o: beleth.c

lists.o: lists.c

ssh.o: ssh.c

install:
install -d $(DESTDIR)$(bindir)
install -m 0755 beleth $(DESTDIR)$(bindir)

uninstall:
-rm $(DESTDIR)$(bindir)/beleth

clean:
rm *.o beleth
-rm *.o beleth

.PHONY: clean install uninstall