Compare commits

...

2 Commits

Author SHA1 Message Date
91c847659e Merge pull request 'figa is now figasm' (#3) from alecs/figasm:master into master
Reviewed-on: #3
2021-05-14 21:49:08 +02:00
4b5760f11b figa is now figasm 2021-05-14 21:15:05 +02:00

View File

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