# Makefile

include ../../../make.inc
include ../mmprog.inc

OBJECTS	=	$(LIBDIR)/message.obj \
		$(LIBDIR)/helper.obj \
		$(LIBDIR)/menu_funcs.obj \
		$(LIBDIR)/sys_funcs.obj
OBJS2		=	 customprocs.obj playaudio.obj display.obj

PMPRINTF = 0
ifdef PMPRINTF
LIBS           = mmpm2.lib pmprintf.lib
else
LIBS           = mmpm2.lib
endif
all:	mmplayer.exe


mmplayer.exe:	mmplayer.c $(OBJECTS) $(OBJS2) makefile def.tpl
	cmd /C $(TOOLDIR)\create_def.cmd mmplayer.def
#Use this command to link dynamicaly
	$(CC) $(CPPFLAGS) -I$(INC) mmplayer.c $(OBJECTS) $(OBJS2) $(LIBS) mmplayer.def
	rc mmplayer.rc mmplayer.exe


clean:
	-rm *.exe
	-rm *.dll
	-rm *.obj
	-rm *.RES
	-rm *.ini
	-rm *.def

cleaner:
	-rm *.*~
	-rm *.flc

distribution:
	
