Compare commits

..

2 Commits

Author SHA1 Message Date
7253af98ec Added support to install and uninstall figa 2021-05-14 20:13:39 +02:00
107036348d Added make clean 2021-05-14 19:42:06 +02:00

View File

@ -1,10 +1,22 @@
PREFIX ?= /usr
FILE = figa
all:
as -o $(FILE).o $(FILE).s
ld -o $(FILE) $(FILE).o
@as -o $(FILE).o $(FILE).s
@ld -o $(FILE) $(FILE).o
clean:
@rm $(FILE).o
@rm $(FILE)
install:
@mkdir -p $(DESTDIR)$(PREFIX)/bin
@cp -p figa $(DESTDIR)$(PREFIX)/bin/figa
uninstall:
@rm $(DESTDIR)$(PREFIX)/bin/figa
debug:
as -g -o $(FILE).o $(FILE).s
ld -o $(FILE) $(FILE).o
@as -g -o $(FILE).o $(FILE).s
@ld -o $(FILE) $(FILE).o