switched to freeglut for now. seems to work slightly better with all the
[erebus2020] / Makefile
index 1c27c0a..ff4803a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,4 @@
-PREFIX ?= /usr/local
-opt_targ = erebus xerebus
-opt_opt = -ffast-math
-opt_dbg = -g
-# --------------------------
-export PREFIX
-export opt_opt
-export opt_dbg
+include cfg.mk
 
 .PHONY: all
 all: liberebus $(opt_targ)
@@ -22,6 +15,9 @@ install: liberebus-install erebus-install xerebus-install
 .PHONY: uninstall
 uninstall: liberebus-uninstall erebus-uninstall xerebus-uninstall
 
+cfg.mk:
+       ./configure
+
 # --- liberebus ---
 .PHONY: liberebus
 liberebus: