# Makefile for InterDesk Graphical Shell

WCCFLAGS      = $$(cat /windows/apps/InterDesk/source/wcc_flags)
WLINKFLAGS    = $$(cat /windows/apps/InterDesk/source/wlink_flags)
WCC_CMD       = $$(cat /windows/apps/InterDesk/source/wcc_cmd)

# For debugging, uncomment the following:
# WCCFLAGS     += -d2
# WLINKFLAGS   += debug all

OBJECTS       = shell.o server.o winshell.o clock.o introdlg.o execcmd.o

LIBS          = ../lib/IDlib.lib

shell         : $(OBJECTS) $(LIBS)
  @echo
  @echo wlink $(WLINKFLAGS) libp ../shelllib @shell
  @wlink $(WLINKFLAGS) libp ../shelllib @shell

.c.o:
  @echo
  @echo $(WCC_CMD) $(WCCFLAGS) $<
  @$(WCC_CMD) $(WCCFLAGS) $<

shell.o       : shell.c shell.h
server.o      : server.c shell.h shell_msg.h
winshell.o    : winshell.c shell.h winshell.h
clock.o       : clock.c shell.h winshell.h
introdlg.o    : introdlg.c
execcmd.o     : execcmd.c
