diff options
author | lshprung <lshprung@yahoo.com> | 2022-05-24 20:44:41 -0700 |
---|---|---|
committer | lshprung <lshprung@yahoo.com> | 2022-05-24 20:44:41 -0700 |
commit | a2a3756b849504432f5d12de84e3dd9ba7ef8cda (patch) | |
tree | 1f6c52b87c383d90fa58e8d9972f385337ca92e9 /Makefile | |
parent | 1020469ff5b17ba057078363aeca48177f1260f1 (diff) |
Created Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
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) |