mirror of
https://github.com/mrkite/regs.git
synced 2024-11-26 00:49:17 +00:00
29 lines
429 B
Makefile
29 lines
429 B
Makefile
CC=clang
|
|
CFLAGS=-Wall
|
|
|
|
all: 2mg omf regs
|
|
|
|
2mg: 2mg.o
|
|
$(CC) $(CFLAGS) -o $@ -largp $^
|
|
|
|
omf: omf.o parser.o
|
|
$(CC) $(CFLAGS) -o $@ -largp $^
|
|
|
|
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
|
|
|
|
%.o: %.c
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
clean:
|
|
rm -f *.o 2mg omg regs
|