warn = -pedantic -Wall
dbg = -g
-#opt = -O3 -ffast-math -fno-strict-aliasing
+#opt = -O3 -ffast-math -fno-strict-aliasing -DNDEBUG
def = -DMINIGLUT_USE_LIBC -DGLEW_STATIC
incdir = -Isrc -Ilibs -Ilibs/imago/src -Ilibs/treestore -Ilibs/glew
libs_path = libs/unix
#include <ctype.h>
#include "cfgopt.h"
+#ifdef NDEBUG
+/* release default options */
+#define DEFOPT_FULLSCR 1
+#define DEFOPT_VSYNC 1
+#define DEFOPT_MUSIC 1
+#else
+/* debug default options */
+#define DEFOPT_FULLSCR 0
+#define DEFOPT_VSYNC 1
+#define DEFOPT_MUSIC 0
+#endif
+
struct options opt = {
0, /* screen name */
- 0, /* fullscreen */
- 1, /* vsync */
- 0, /* music */
+ DEFOPT_FULLSCR,
+ DEFOPT_VSYNC,
+ DEFOPT_MUSIC
};
static const char *usagefmt = "Usage: %s [options]\n"