figasm/Makefile

24 lines
343 B
Makefile

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