#
#  pm123.exe makefile for NMAKE and VAC++
#

!include ..\config\makerules

LNKFLG   = $(LNKFLG) -B"/PM:PM /STACK:1048576"
INCLUDE  = $(INCLUDE);..\include;..\utils;..\gbm123;..\http123;..\ooura1d
LIB      = $(LIB);..\utils;..\gbm123;..\http123;..\ooura1d

all: pm123.exe

DEF      = pm123.def
OBJECTS  = button95.obj pm123.obj 123_msg.obj 123_util.obj tag.obj \
           pfreq.obj specana.obj plugman.obj bookmark.obj iniman.obj \
           playlist.obj playlist_utils.obj properties.obj skin.obj
RESOURCE = pm123.res
LIBS     = gbm123.lib ooura1d.lib http123.lib utilfct.lib

pm123.exe: $(OBJECTS) $(DEF) $(RESOURCE)
   $(CC) $(LNKFLG) -Fm$* -Fe$@ $(OBJECTS) $(DEF) $(LIBS)
   $(RC) $(RESFLG) $(RESOURCE) $@ > nul
   execmode -sp pm123.exe

pm123.c:          pm123.h    \
                  plugman.h  \
                  bookmark.h \
                  button95.h \
                  pfreq.h    \
                  genre.h    \
                  copyright.h

iniman.c:         pm123.h    \
                  plugman.h  \
                  iniman.h

playlist.c:       pm123.h    \
                  playlist.h

playlist_utils.c: pm123.h    \
                  plugman.h  \
                  playlist.h

properties.c:     pm123.h    \
                  plugman.h  \
                  copyright.h\
                  properties.h

bookmark.c:       pm123.h    \
                  bookmark.h

skin.c:           pm123.h

pm123.rc:         pm123.h    \
                  bookmark.h
pm123.h:          playlist.h \
                  skin.h     \
                  properties.h
playlist.h:       tag.h

clean:
  -@del pm123.exe pm123.map $(OBJECTS) $(RESOURCE) 2> nul
