# Wedit Makefile for project ex04_null_pointer
SRCDIR=c:\examples\lcc\console_examples\ex04_null_pointer
CFLAGS=-I"C:\ProgramFiles\lcc\include"  -g2 
CC=$(LCCROOT)\bin\lcc.exe
LINKER=$(LCCROOT)\bin\lcclnk.exe
OBJS=\
	ex04_null_pointer.obj

LIBS=
EXE=ex04_null_pointer.exe

$(EXE):	$(OBJS) Makefile
	$(LINKER)  -subsystem console -o $(SRCDIR)\lcc\ex04_null_pointer.exe $(OBJS) $(LIBS)

# Build ex04_null_pointer.c
EX04_NULL_POINTER_C=\

ex04_null_pointer.obj: $(EX04_NULL_POINTER_C) $(SRCDIR)\ex04_null_pointer.c
	$(CC) -c $(CFLAGS) $(SRCDIR)\ex04_null_pointer.c

link:
	$(LINKER)  -subsystem console -o $(SRCDIR)\lcc\ex04_null_pointer.exe $(OBJS) $(LIBS)

clean:
	del $(OBJS) ex04_null_pointer.exe
