init
This commit is contained in:
parent
3d377296e4
commit
ca77cf072e
3 changed files with 3557 additions and 0 deletions
22
Makefile
Normal file
22
Makefile
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
CC ?= cc
|
||||
CFLAGS ?= -O2
|
||||
CFLAGS += -std=c99 -Wall -Wextra
|
||||
PREFIX ?= /usr/local
|
||||
BINDIR = $(PREFIX)/bin
|
||||
|
||||
all: moerx
|
||||
|
||||
moerx: moerx.c
|
||||
$(CC) $(CFLAGS) -o $@ moerx.c
|
||||
|
||||
install: moerx
|
||||
install -d "$(DESTDIR)$(BINDIR)"
|
||||
install -m 755 moerx "$(DESTDIR)$(BINDIR)/moerx"
|
||||
|
||||
uninstall:
|
||||
rm -f "$(DESTDIR)$(BINDIR)/moerx"
|
||||
|
||||
clean:
|
||||
rm -f moerx
|
||||
|
||||
.PHONY: all install uninstall clean
|
||||
Loading…
Add table
Add a link
Reference in a new issue