!IF "$(CFG)" == "sdcppa - Win32 Release"\r
\r
# Begin Custom Build\r
-InputPath=.\auto-host_vc_in.h\r
+InputPath=".\auto-host_vc_in.h"\r
\r
"auto-host.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
copy auto-host_vc_in.h auto-host.h > nul\r
!ELSEIF "$(CFG)" == "sdcppa - Win32 Debug"\r
\r
# Begin Custom Build\r
-InputPath=.\auto-host_vc_in.h\r
+InputPath=".\auto-host_vc_in.h"\r
\r
"auto-host.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
copy auto-host_vc_in.h auto-host.h > nul\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=.\options_vc_in.c\r
+SOURCE=.\sdcpp.opt\r
\r
!IF "$(CFG)" == "sdcppa - Win32 Release"\r
\r
# Begin Custom Build\r
-InputPath=.\options_vc_in.c\r
+InputPath=.\sdcpp.opt\r
\r
-"options.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
- copy options_vc_in.c options.c > nul\r
-\r
-# End Custom Build\r
-\r
-!ELSEIF "$(CFG)" == "sdcppa - Win32 Debug"\r
-\r
-# Begin Custom Build\r
-InputPath=.\options_vc_in.c\r
+BuildCmds= \\r
+ gawk -f opt-gather.awk sdcpp.opt | gawk -f opt-functions.awk -f optc-gen.awk -v header_name="config.h system.h options.h" > options.c \\r
+ gawk -f opt-gather.awk sdcpp.opt | gawk -f opt-functions.awk -f opth-gen.awk > options.h \\r
+ \r
\r
"options.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
- copy options_vc_in.c options.c > nul\r
-\r
-# End Custom Build\r
-\r
-!ENDIF \r
-\r
-# End Source File\r
-# Begin Source File\r
-\r
-SOURCE=.\options_vc_in.h\r
-\r
-!IF "$(CFG)" == "sdcppa - Win32 Release"\r
-\r
-# Begin Custom Build\r
-InputPath=.\options_vc_in.h\r
+ $(BuildCmds)\r
\r
"options.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
- copy options_vc_in.h options.h > nul\r
-\r
+ $(BuildCmds)\r
# End Custom Build\r
\r
!ELSEIF "$(CFG)" == "sdcppa - Win32 Debug"\r
\r
# Begin Custom Build\r
-InputPath=.\options_vc_in.h\r
+InputPath=.\sdcpp.opt\r
\r
-"options.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
- copy options_vc_in.h options.h > nul\r
+BuildCmds= \\r
+ gawk -f opt-gather.awk sdcpp.opt | gawk -f opt-functions.awk -f optc-gen.awk -v header_name="config.h system.h options.h" > options.c \\r
+ gawk -f opt-gather.awk sdcpp.opt | gawk -f opt-functions.awk -f opth-gen.awk > options.h \\r
+ \r
\r
+"options.c" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ $(BuildCmds)\r
+\r
+"options.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ $(BuildCmds)\r
# End Custom Build\r
\r
!ENDIF \r