SOURCES = chara.c game.c man.c mansub.c mansub2.c map.c mapsub.c menu.c monster.c picture.c player.c smac.c stage.c dsp.c etc.c

# ޥɥ饤Ĺˤ¤ΤǡĹդ뤳
OBJS = chara.obj game.obj man.obj mansub.obj mansub2.obj map.obj mapsub.obj menu.obj monster.obj picture.obj player.obj smac.obj stage.obj dsp.obj etc.obj main.obj

.SUFFIXES: .c .obj

all :		smac xsmac

smac :	smac.fx

smac.fx :	smac.bin
	doscmd mkfent16 smac.cf

smac.bin :	$(OBJS)
	echo $(OBJS) > objs
	doscmd lcc86 -o smac.bin -O @objs

.c.obj :	$*.c
	doscmd lcc86 -c $*.c -O -I.

clean :
	rm -f smac.fx smac.bin $(OBJS)

package :	smac.fx
	rm -fR smac-b01
	mkdir -p smac-b01
	cp -R copying copyrigh readme history makefile doscmdrc *.c *.h \
		smac.bin smac.cf smac.fx pic8 \
		smac-b01
	zip -r smac-b01 smac-b01

xsmac :
