diff options
| author | yuzu-eva <stevenhu@web.de> | 2024-11-19 21:48:06 +0100 |
|---|---|---|
| committer | yuzu-eva <stevenhu@web.de> | 2024-11-19 21:48:06 +0100 |
| commit | 82829f1aba37b1afd12a27c0614dc50458fb8781 (patch) | |
| tree | 256cd4f2e85925b8003b5845b7ec9df6d8e564cb /Makefile | |
| parent | 740ee5787f879a97217bc87d9a1b7a59ef621b9a (diff) | |
added Makefile
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f5ceae3 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +SHELL=/bin/sh +CC=clang + +SRCDIR=. +PREFIX=/usr/local +BINDIR=/bin + +INSTALL_PROGRAM=install +INSTALL_DATA=install -m 644 + +CFLAGS=-Wall -Wextra -O3 -ggdb +BIN=myal + +all: $(BIN) + +myal: $(SRCDIR)/main.c + $(CC) $(CFLAGS) $(SRCDIR)/main.c -o myal + +install: + $(INSTALL_PROGRAM) mvis $(PREFIX)$(BINDIR)/myal + +clean: + $(RM) myal + +distclean: clean + $(RM) /usr/local/bin/myal |
