Add Makefile
This commit is contained in:
parent
5affa3ce46
commit
703b2e661d
2 changed files with 20 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/kissy
|
||||
19
Makefile
Normal file
19
Makefile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
CC := gcc
|
||||
CFLAGS := -O2 -pipe -Wall -Wextra
|
||||
INSTALL := install
|
||||
PREFIX := /usr/local
|
||||
BINDIR := bin
|
||||
|
||||
.PHONY: all
|
||||
all: kissy
|
||||
|
||||
kissy: kissy.c
|
||||
$(CC) $(CFLAGS) -o kissy kissy.c
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
$(INSTALL) -Dm2755 -oroot -gtty -s kissy $(DESTDIR)$(PREFIX)/$(BINDIR)/kissy
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f kissy
|
||||
Loading…
Add table
Add a link
Reference in a new issue