-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 808 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
CXXFLAGS+=-g -O2 -Wall --std=c++11 -pthread `pkg-config --cflags cairo`
LDFLAGS+=-g -std=c++11 -lX11 -lGL -pthread `pkg-config --libs cairo` -lasound
OBJFILES = \
main.o view.o tiles.o texgen.o tilegen.o board_view.o run_controller.o \
command_tile_owner.o \
command_queue.o command_tile_repository.o \
grid.o puzzle.o clock.o noise2d.o robot_view.o \
main_screen.o start_screen.o background.o icon.o \
audioplayer.o bgmusic.o configfile.o
lambrob: $(OBJFILES)
$(CXX) $(LDFLAGS) -o $@ $^
clean:
rm -rf $(OBJFILES) maze .dep
DEPEND = $(patsubst %.o, .dep/%.o.d, $(OBJFILES))
.dep/%.o.d: %.cc
@mkdir -p $(dir $@)
@$(CXX) -MM $(CFLAGS) $(CPPFLAGS) -MT $(<:.cc=.o) -MP -MF $@ $<
@echo MAKEDEP $<
depend: $(DEPEND)
ifeq ($(shell if [ -e .dep ] ; then echo yes ; fi),yes)
-include $(DEPEND)
endif