mirror of https://git.sr.ht/~kikoodx/bcasm
24 lines
417 B
Makefile
24 lines
417 B
Makefile
# bcasm - this software is under the MIT license
|
|
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
|