# Makefile for vbcc/pasm/GNU-make

CC	= vc +ppc
CCOPTS	=
AS	= pasm
ASOPTS	= -w

all: c2ptest gloom_c2p_ppc.bin


c2ptest: c2ptest.c gloom_c2p_ppc.o
	$(CC) -o $@ $(CCOPTS) c2ptest.c gloom_c2p_ppc.o

gloom_c2p_ppc.o: gloom_c2p_ppc.s
	$(AS) -o $@ $(ASOPTS) -F1 gloom_c2p_ppc.s

gloom_c2p_ppc.bin: gloom_c2p_ppc.s
	$(AS) -o $@ $(ASOPTS) -F0 gloom_c2p_ppc.s

clean:
	delete quiet force c2ptest gloom_c2p_ppc.o
