Rev 3881 | Rev 3916 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3881 | Rev 3909 | ||
---|---|---|---|
Line 255... | Line 255... | ||
255 | if ((vartype == "y") or (vartype == "y/n") or (vartype == "n/y")): |
255 | if ((vartype == "y") or (vartype == "y/n") or (vartype == "n/y")): |
256 | if (default == "y"): |
256 | if (default == "y"): |
257 | outmc.write('/* %s */\n#define %s\n\n' % (name, varname)) |
257 | outmc.write('/* %s */\n#define %s\n\n' % (name, varname)) |
258 | outdf.write(' -D%s' % varname) |
258 | outdf.write(' -D%s' % varname) |
259 | else: |
259 | else: |
260 | outmc.write('/* %s */\n#define %s %s\n\n' % (name, varname, default)) |
260 | outmc.write('/* %s */\n#define %s %s\n#define %s_%s\n\n' % (name, varname, default, varname, default)) |
261 | outdf.write(' -D%s=%s' % (varname, default)) |
261 | outdf.write(' -D%s=%s -D%s_%s' % (varname, default, varname, default)) |
262 | 262 | ||
263 | outmk.write('REVISION = %s\n' % revision) |
263 | outmk.write('REVISION = %s\n' % revision) |
264 | outmk.write('TIMESTAMP = %s\n' % timestamp) |
264 | outmk.write('TIMESTAMP = %s\n' % timestamp) |
265 | 265 | ||
266 | outmc.write('#define REVISION %s\n' % revision) |
266 | outmc.write('#define REVISION %s\n' % revision) |