figasm/Makefile

24 lines
343 B
Makefile
Raw Permalink Normal View History

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:
@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:
@rm $(FILE).o
2021-05-14 21:15:05 +02:00
@rm $(EXEC)
install:
@mkdir -p $(DESTDIR)$(PREFIX)/bin
2021-05-14 21:15:05 +02:00
@cp -p $(EXEC) $(DESTDIR)$(PREFIX)/bin/figasm
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:
@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