regs/Makefile

29 lines
429 B
Makefile
Raw Normal View History

2018-08-19 17:24:54 -07:00
CC=clang
CFLAGS=-Wall
all: 2mg omf regs
2mg: 2mg.o
2020-02-14 17:08:27 -07:00
$(CC) $(CFLAGS) -o $@ -largp $^
2018-08-19 17:24:54 -07:00
omf: omf.o parser.o
2020-02-14 17:08:27 -07:00
$(CC) $(CFLAGS) -o $@ -largp $^
2018-08-19 17:24:54 -07:00
2020-02-14 17:08:27 -07:00
regs: regs.o map.o scan.o parser.o disasm.o iigs.o
$(CC) $(CFLAGS) -o $@ -largp $^
iigs.c: iigs.dat
xxd -i $< $@
iigs.dat: docmaker/docmaker iigs
./docmaker/docmaker iigs
docmaker/docmaker:
$(MAKE) -C docmaker
2018-08-19 17:24:54 -07:00
%.o: %.c
$(CC) -c $(CFLAGS) -o $@ $<
clean:
rm -f *.o 2mg omg regs