# Wedit Makefile for project AMLoader
SRCDIR=c:\lccwork\lcc\amloader
CFLAGS=-Ic:\lcc\include 
CC=$(LCCROOT)\bin\lcc.exe
LINKER=$(LCCROOT)\bin\lcclnk.exe
OBJS=\
	amloader.res \
	amloader.obj

LIBS=
EXE=amloader.exe

$(EXE):	$(OBJS) Makefile
	$(LINKER)  -s -subsystem windows -o $(SRCDIR)\amloader.exe $(OBJS) $(LIBS)

# Build amloader.res
AMLOADER_RC=\

amloader.res:	$(AMLOADER_RC) $(SRCDIR)\amloader.rc
	$(LCCROOT)\bin\lrc.exe -I$(SRCDIR) -Ic:\lcc\include  $(SRCDIR)\amloader.rc

# Build amloader.c
AMLOADER_C=\

amloader.obj: $(AMLOADER_C) $(SRCDIR)\amloader.c
	$(CC) -c $(CFLAGS) $(SRCDIR)\amloader.c

link:
	$(LINKER)  -s -subsystem windows -o $(SRCDIR)\amloader.exe $(OBJS) $(LIBS)

clean:
	del $(OBJS) c:\lccwork\lcc\amloader\amloader.exe
