CC=gcc
CFLAGS=-Wall -g -DRAM_DICT -DBOOTSTRAP -DSIXTEEN_BIT_STACK
SRCS=	pc_main.c uforth.c  app.c  utils.c
OBJS= pc_main.o uforth.o  app.o  utils.o

uforth:	$(OBJS)
	gcc $(CFLAGS) -DRAM_DICT -o uforth $^


msp430_uforth.txt: msp430_core_dict.txt
	gawk -f make_ti.awk Release/Exe/uforth.txt msp430_core_dict.txt >msp430_uforth.txt

core.img: uforth *.f
	./uforth "save-image core.img"

msp430_core_dict.txt: uforth core.img  make_msp430_dict
	./make_msp430_dict <core.img >msp430_core_dict.txt

make_msp430_dict: make_msp430_dict.o


clean:
	-rm -f *.o *.exe *~ *.stackdump *.aft-TOC