2021-05-14 20:13:39 +02:00
|
|
|
PREFIX ?= /usr
|
2020-07-01 00:22:49 +02:00
|
|
|
FILE = figa
|
|
|
|
|
|
|
|
all:
|
2021-05-14 20:13:39 +02:00
|
|
|
@as -o $(FILE).o $(FILE).s
|
|
|
|
@ld -o $(FILE) $(FILE).o
|
2020-07-01 00:22:49 +02:00
|
|
|
|
2021-05-14 19:42:06 +02:00
|
|
|
clean:
|
2021-05-14 20:13:39 +02:00
|
|
|
@rm $(FILE).o
|
|
|
|
@rm $(FILE)
|
|
|
|
|
|
|
|
install:
|
|
|
|
@mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
|
|
@cp -p figa $(DESTDIR)$(PREFIX)/bin/figa
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
@rm $(DESTDIR)$(PREFIX)/bin/figa
|
2021-05-14 19:42:06 +02:00
|
|
|
|
2020-07-01 00:22:49 +02:00
|
|
|
debug:
|
2021-05-14 20:13:39 +02:00
|
|
|
@as -g -o $(FILE).o $(FILE).s
|
|
|
|
@ld -o $(FILE) $(FILE).o
|
2020-07-01 00:22:49 +02:00
|
|
|
|