From a2a3756b849504432f5d12de84e3dd9ba7ef8cda Mon Sep 17 00:00:00 2001 From: lshprung Date: Tue, 24 May 2022 20:44:41 -0700 Subject: Created Makefile --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8d48a4d --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +CC = gcc +NAME = int2bin +PREFIX=/usr/local + +$(NAME): $(NAME).o + $(CC) -o $(NAME) $(NAME).o + +$(NAME).o: $(NAME).c + +.PHONY: clean +clean: + rm -f *.o + rm -f $(NAME) + +.PHONY: install +install: + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp $(NAME) $(DESTDIR)$(PREFIX)/bin/$(NAME) + +.PHONY: uninstall +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/$(NAME) -- cgit