* create url files instead links in startup menu
[fw/sdcc] / support / cpp2 / sdcppa.dsp
index fc97e827511dd9ec493de722aaaeb00cf9013263..6d14bd0a93462faacec74ab2845f4f02d087a015 100644 (file)
@@ -66,7 +66,7 @@ SOURCE=".\auto-host_vc_in.h"
 !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
@@ -76,7 +76,7 @@ InputPath=.\auto-host_vc_in.h
 !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
@@ -88,53 +88,40 @@ InputPath=.\auto-host_vc_in.h
 # 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