!include !IFDEF DEBUG .c.obj: $(cc) /D "_LIB" /GX $(cdebug) $(cflags) /I "..\..\include" /I "..\..\include\share" -DSTRICT -YX /Od /D "_DEBUG" $< !else .c.obj: $(cc) /D "_LIB" /O2 $(crelease) $(cflags) /I "..\..\include" /I "..\..\include\share" -DSTRICT -YX -DNODEBUG $< !endif C_FILES= \ getopt.c \ getopt1.c UTF8_C_FILES= \ charset.c \ iconvert.c \ utf8.c OBJS= $(C_FILES:.c=.obj) UTF8_OBJS= $(UTF8_C_FILES:.c=.obj) all: getopt.lib utf8.lib getopt.lib: $(OBJS) link.exe -lib /nodefaultlib -out:../../obj/lib/$*.lib $(OBJS) utf8.lib: $(UTF8_OBJS) link.exe -lib /nodefaultlib -out:../../obj/lib/$*.lib $(UTF8_OBJS) clean: -del *.obj *.pch -del ..\..\obj\lib\getopt.lib ..\..\obj\lib\getopt.pdb -del ..\..\obj\lib\utf8.lib ..\..\obj\lib\utf8.pdb