CPP = cl
RSC = rc
LINK = link

target = lang3.dll
libs = comctl32.lib kernel32.lib user32.lib gdi32.lib
rscobjects = 
objects = lang3.obj
CFLAGS = /nologo /c
DEFfile= sdk.def

.SUFFIXES: .obj .c .cpp .h .rc .res

all: $(target)

$(target): $(objects) $(rscobjects)
	$(LINK) /nologo /dll /def:$(DEFfile) $(libs) $(objects) $(rscobjects) /out:$(target) 

.c.obj:
	$(CPP) $(CFLAGS) $<

.cpp.obj:
	$(CPP) $(CFLAGS) $<

.rc.res:
	$(RSC) /l 0x409 /fo $@ $< 

clean:
	@del *.obj
	@del *.res
	@del $(target)

lang3.obj: sdk.h
