You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
463 B
Makefile

CC=gcc
NAME=parse-ssh-cl
CFLAGS=-I.
DEPS = utils.h
OBJ = utils.o main.o
PREFIX = $(HOME)/.local
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
$(NAME): $(OBJ)
$(CC) -o $@ $^ $(CFLAGS)
.PHONY: clean
clean:
rm -f *.o *~ core *~
$(NAME).tar.gz: $(NAME)
tar -czf $(NAME).tar.gz $(NAME)
.PHONY: release
release: $(NAME).tar.gz
$(PREFIX)/bin/$(NAME): $(NAME)
install -m 0755 $(NAME) "$(PREFIX)/bin/$(NAME)"
.PHONY: install
install: $(PREFIX)/bin/$(NAME)