KSIC = xgcc
KSIFLAGS = -g
CFLAGS = -g -Wall

all: stdlib.o target_conf

target_conf: target_conf.in
	$(KSIC) -x ksi -o $@ -E $< 

%.o: %.c
	$(KSIC) $(CFLAGS) -c $<

%.o: %.ksi
	$(KSIC) $(KSIFLAGS) -c $<

clean:
	rm -f *.o target_conf
