CPP = cl
RSC = rc
LINK = link

libs = 
libs3 = alleg.lib gdi32.lib

target1 = decrsa.exe
objects1 = decrsa.obj util.obj

target2 = encrsa.exe
objects2 = encrsa.obj stringhelper.obj

CFLAGS = /nologo /c /Op /O2 /G5 /W3
LINKFLAGS = /nologo
.SUFFIXES: .obj .c .cpp .h .rc .res

all: $(target1) $(target2)

$(target1): $(objects1)
	$(LINK) $(LINKFLAGS) $(libs) $(objects1) /out:$(target1) 

$(target2): $(objects2)
	$(LINK) $(LINKFLAGS) $(libs) $(objects2) /out:$(target2)

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

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

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

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