mirror of https://git.sr.ht/~kikoodx/bcasm
24 lines
376 B
Makefile
24 lines
376 B
Makefile
|
# bcasm
|
||
|
SRC = bcasm.c
|
||
|
CC ?= cc
|
||
|
CFLAGS = -O3 -std=c99 -pedantic -Wall -Wextra
|
||
|
PREFIX ?= /usr/local
|
||
|
MANPREFIX ?= /usr/local/man
|
||
|
|
||
|
all: bcasm
|
||
|
|
||
|
bcasm: $(SRC)
|
||
|
$(CC) $(CFLAGS) $(SRC) -o bcasm
|
||
|
|
||
|
clean:
|
||
|
rm -f bcasm
|
||
|
|
||
|
install:
|
||
|
cp ./bcasm $(DESTDIR)$(PREFIX)/bin
|
||
|
chmod 755 $(DESTDIR)$(PREFIX)/bin/bcasm
|
||
|
|
||
|
uninstall:
|
||
|
rm -f $(DESTDIR)$(PREFIX)/bin/bcasm
|
||
|
|
||
|
.PHONY: clean install uninstall
|