switched to freeglut for now. seems to work slightly better with all the
[erebus2020] / xerebus / Makefile
index 15b9378..ba88b32 100644 (file)
@@ -1,15 +1,16 @@
+include ../cfg.mk
+
 src = $(wildcard src/*.c)
 obj = $(src:.c=.o)
 dep = $(src:.c=.d)
 
 bin = xerebus
 
-def = -DMINIGLUT_USE_LIBC
 incdir = -I../liberebus/src
 libdir = -L../liberebus
 
 CFLAGS = -pedantic -Wall $(opt_dbg) $(opt_opt) $(def) $(incdir)
-LDFLAGS = $(libdir) -lerebus -lGL -lX11 -pthread -lm
+LDFLAGS = $(libdir) -lerebus -lGL -lglut -lX11 -pthread -lm
 
 $(bin): $(obj) ../liberebus/liberebus.a
        $(CC) -o $@ $(obj) $(LDFLAGS)