2021-05-14 20:13:39 +02:00
|
|
|
PREFIX ?= /usr
|
2020-07-01 00:22:49 +02:00
|
|
|
FILE = figa
|
2021-05-14 21:15:05 +02:00
|
|
|
EXEC = figasm
|
2020-07-01 00:22:49 +02:00
|
|
|
|
|
|
|
all:
|
2021-05-14 20:13:39 +02:00
|
|
|
@as -o $(FILE).o $(FILE).s
|
2021-05-14 21:15:05 +02:00
|
|
|
@ld -o $(EXEC) $(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
|
2021-05-14 21:15:05 +02:00
|
|
|
@rm $(EXEC)
|
2021-05-14 20:13:39 +02:00
|
|
|
|
|
|
|
install:
|
|
|
|
@mkdir -p $(DESTDIR)$(PREFIX)/bin
|
2021-05-14 21:15:05 +02:00
|
|
|
@cp -p $(EXEC) $(DESTDIR)$(PREFIX)/bin/figasm
|
2021-05-14 20:13:39 +02:00
|
|
|
|
|
|
|
uninstall:
|
2021-05-14 21:15:05 +02:00
|
|
|
@rm $(DESTDIR)$(PREFIX)/bin/figasm
|
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
|
2021-05-14 21:15:05 +02:00
|
|
|
@ld -o $(EXEC) $(FILE).o
|
2020-07-01 00:22:49 +02:00
|
|
|
|