CC = gcc CFLAGS = -g -O2 -W -Wall -Wwrite-strings GTK_CFLAGS = `pkg-config --cflags gtk+-2.0` GTK_LIBS = `pkg-config --libs gtk+-2.0` TPASM = tpasm OBJCOPY = objcopy all: dump.tok bintotok xchr xchrv coordedit collect %.tok: %.bin bintotok ./bintotok < $< > $@ %.bin: %.asm $(TPASM) -P z80 $< -l $*.lst -o intel $*.hex $(OBJCOPY) -I ihex $*.hex -O binary $*.bin xchrv: xchr.c $(CC) $(CFLAGS) -DDEBUG xchr.c -o xchrv -lm xchr: xchr.c $(CC) $(CFLAGS) xchr.c -o xchr -lm bintotok: bintotok.c $(CC) $(CFLAGS) bintotok.c -o bintotok coordedit: coordedit.c $(CC) $(CFLAGS) $(GTK_CFLAGS) coordedit.c -o coordedit $(GTK_LIBS) collect: collect.c $(CC) $(CFLAGS) collect.c -o collect mostlyclean: rm -f *.bin *.hex rm -f *.o bintotok xchr xchrv coordedit collect clean: mostlyclean rm -f *.lst *.tok