]> granicus.if.org Git - onig/commitdiff
replace option -o to /Fe: for escape warning by cl command
authorK.Kosako <kosako@sofnec.co.jp>
Wed, 22 Aug 2018 06:03:22 +0000 (15:03 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Wed, 22 Aug 2018 06:03:22 +0000 (15:03 +0900)
src/Makefile.windows

index 52eaff3f408bdae5efe653dfb54bc2a8be1d7d99..e98dc2e7baabddcd7168fea6df1498f5ccba91af 100644 (file)
@@ -161,23 +161,23 @@ ptest: $(testp)
        .\$(testp)\r
 \r
 $(testc): $(testc).c $(libname)\r
-       $(CC) -nologo -o $(testc) -DONIG_EXTERN=extern $(testc).c $(libname)\r
+       $(CC) -nologo /Fe:$(testc) -DONIG_EXTERN=extern $(testc).c $(libname)\r
 \r
 $(testp): $(testc).c $(dlllib)\r
-       $(CC) -nologo -DPOSIX_TEST -o $(testp) $(testc).c $(dlllib)\r
+       $(CC) -nologo -DPOSIX_TEST /Fe:$(testp) $(testc).c $(dlllib)\r
 \r
 $(testc)u: $(testc)u.c $(libname)\r
-       $(CC) -nologo -o $(testc)u -DONIG_EXTERN=extern $(testc)u.c $(libname)\r
+       $(CC) -nologo /Fe:$(testc)u -DONIG_EXTERN=extern $(testc)u.c $(libname)\r
 \r
 clean:\r
        del $(BUILD_DIR)\*.obj $(BUILD_DIR)\*.lib $(BUILD_DIR)\*.exp $(BUILD_DIR)\*.dll $(BUILD_DIR)\$(testp).exe $(BUILD_DIR)\$(testc).exe $(BUILD_DIR)\$(testc).obj\r
 \r
 \r
 samples: all\r
-       $(CC) $(CFLAGS) -I. -o simple  $(ONIG_DIR)\sample\simple.c  $(dlllib)\r
-       $(CC) $(CFLAGS) -I. -o posix   $(ONIG_DIR)\sample\posix.c   $(dlllib)\r
-       $(CC) $(CFLAGS) -I. -o names   $(ONIG_DIR)\sample\names.c   $(dlllib)\r
-       $(CC) $(CFLAGS) -I. -o listcap $(ONIG_DIR)\sample\listcap.c $(dlllib)\r
-       $(CC) $(CFLAGS) -I. -o sql     $(ONIG_DIR)\sample\sql.c     $(dlllib)\r
-       $(CC) $(CFLAGS) -I. -o encode  $(ONIG_DIR)\sample\encode.c  $(dlllib)\r
-       $(CC) $(CFLAGS) -I. -o syntax  $(ONIG_DIR)\sample\syntax.c  $(dlllib)
\ No newline at end of file
+       $(CC) $(CFLAGS) -I. /Fe:simple  $(ONIG_DIR)\sample\simple.c  $(dlllib)\r
+       $(CC) $(CFLAGS) -I. /Fe:posix   $(ONIG_DIR)\sample\posix.c   $(dlllib)\r
+       $(CC) $(CFLAGS) -I. /Fe:names   $(ONIG_DIR)\sample\names.c   $(dlllib)\r
+       $(CC) $(CFLAGS) -I. /Fe:listcap $(ONIG_DIR)\sample\listcap.c $(dlllib)\r
+       $(CC) $(CFLAGS) -I. /Fe:sql     $(ONIG_DIR)\sample\sql.c     $(dlllib)\r
+       $(CC) $(CFLAGS) -I. /Fe:encode  $(ONIG_DIR)\sample\encode.c  $(dlllib)\r
+       $(CC) $(CFLAGS) -I. /Fe:syntax  $(ONIG_DIR)\sample\syntax.c  $(dlllib)
\ No newline at end of file