6 CXXFLAGS
= -Wall
-Werror
-ggdb
`sdl-config --cflags` -I
/usr
/include/SDL
7 LDFLAGS
= `sdl-config --libs` -lm
-L
/usr
/X11
/lib
-lGL
-lGLU
-lSDL_ttf
-lSDL_image
-lSDL_net
17 OBJS
= $(subst .
cpp,.o
,$(SRCS
))
20 $(CXX
) $(LDFLAGS
) -o
$@
$^
23 #{{{1 administrative rules
27 rm -f
$(TARGET
) $(OBJS
) core
*
31 $(CXX
) -MM
$(CXXFLAGS
) $(SRCS
) > $@
37 ifneq ($(wildcard .depend
),)
43 $(CXX
) -M
$(CXXFLAGS
) $(SRCS
) \
44 | sed
's/:\ /\ /;s/\ /\n/g;s/\\//' | grep
-v
'\.o$$' |
sort | uniq \
45 | ctags
--c
++-kinds
=+px-f
--c-kinds
=+px-f
-L
-