switched to freeglut for now. seems to work slightly better with all the
[erebus2020] / xerebus / Makefile
1 include ../cfg.mk
2
3 src = $(wildcard src/*.c)
4 obj = $(src:.c=.o)
5 dep = $(src:.c=.d)
6
7 bin = xerebus
8
9 incdir = -I../liberebus/src
10 libdir = -L../liberebus
11
12 CFLAGS = -pedantic -Wall $(opt_dbg) $(opt_opt) $(def) $(incdir)
13 LDFLAGS = $(libdir) -lerebus -lGL -lglut -lX11 -pthread -lm
14
15 $(bin): $(obj) ../liberebus/liberebus.a
16         $(CC) -o $@ $(obj) $(LDFLAGS)
17
18 -include $(dep)
19
20 .PHONY: clean
21 clean:
22         rm -f $(obj) $(bin)
23
24 .PHONY: cleandep
25 cleandep:
26         rm -f $(dep)
27
28 .PHONY: install
29 install: $(bin)
30         mkdir -p $(DESTDIR)$(PREFIX)/bin
31         cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin)
32
33 .PHONY: uninstall
34 uninstall:
35         rm -f $(DESTDIR)$(PREFIX)/bin/$(bin)