
AS = tasm
LK = tlink
LIB = tlib
CC = tcc
AFLAGS = /ml
LFLAGS = /c

TARGET = wbwww
OBJS = wbwww.obj

# ------------------------------------------------------------------

.c.obj:
	$(CC) $(CFLAGS) -o$*.obj -c $*.c

.asm.obj:
	$(AS) $(AFLAGS) $*.asm,$*.obj;

#-------------
# ワンダーウィッチ実機
CFLAGS = -1 -mc -O -Z -D -Ic:\wwitch\include
LINKFILE = linkfile.ww
all:	$(TARGET).exe
	exetobin $(TARGET).exe $(TARGET).bin
	del $(TARGET).exe
	mkfent $(TARGET).cf
	del $(TARGET).bin
	del $(TARGET).map
	del $(TARGET).obj
#-------------
#-------------
# エミュレーション
#CFLAGS = -1 -mc -O -Z -D_WSSIM -Ic:\wwitch\include
#LINKFILE = linkfile.emu
#all:	$(TARGET).exe
#	del $(TARGET).bin
#	del $(TARGET).map
#	del $(TARGET).obj
#-------------

# ------------------------------------------------------------------

$(TARGET).exe:	$(OBJS) $(LINKFILE)
	tlink @$(LINKFILE)

# ------------------------------------------------------------------

$(OBJS):

