mirror of
https://github.com/mrkite/regs.git
synced 2024-11-29 04:49:16 +00:00
28 lines
369 B
Makefile
28 lines
369 B
Makefile
CC=clang
|
|
CFLAGS=-Wall
|
|
|
|
all: 2mg regs
|
|
|
|
2mg: 2mg.o
|
|
$(CC) $(CFLAGS) -o $@ -largp $^
|
|
|
|
regs: src/iigs.h
|
|
$(MAKE) -C src
|
|
|
|
src/iigs.h: 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 regs
|
|
$(MAKE) -C docmaker clean
|
|
$(MAKE) -C src clean
|