
POPCORN   = popcorn.exe
TALC      = talc.exe
EXTRAFLAGS = 
COMPFLAGS = --TALC $(EXTRAFLAGS)

SRC_BASE = core id set splay dict list lexing queue arg string sys filename\
	   xarray bitvec
	   

SRC_TAL = $(addsuffix .tal, $(SRC_BASE))
SRC_OBJ = $(addsuffix .obj, $(SRC_BASE))
SOURCES = $(addsuffix .pop, $(SRC_BASE))

all: $(SRC_OBJ)

%.tal %.obj: %.pop
	$(POPCORN) $(COMPFLAGS) -c $<

clean:
	rm -f *.tal* *.obj *.o *~ *.lst

depend:
	../../apps/popcorn/build/popcorn.exe -M\
	 $(COMPFLAGS) $(SOURCES) > .depend

include .depend