3 CPPFLAGS
= $$(pkg-config
--cflags gtkmm-3.0
) -I.
-I ..
/badge
4 CFLAGS
= -Wall
-Wextra
-pedantic
-std
=c99
-Werror
-O0
-g
-fstack-protector-all
5 CXXFLAGS
= -Wall
-Wextra
-pedantic
-std
=c
++0x
-Werror
-O0
-g
-fstack-protector-all
6 LDLIBS
= $$(pkg-config
--libs gtkmm-3.0
)
9 CONVERTER
= level-converter
11 GLADEFILES
= lcd-display.glade
13 BADGE_CXXSRCS
= mock-main.
cc \
14 mock
/badge_worker.
cc \
18 BADGE_CSRCS
= badge_main_loop.c
20 BADGE_FAROBJS
= ui
/font.o \
23 jumpnrun
/collision.o \
25 jumpnrun
/game_state.o \
28 jumpnrun
/level_load.o \
35 BADGE_CXXOBJS
= $(BADGE_CXXSRCS
:%.
cc=%.o
)
36 BADGE_COBJS
= $(BADGE_CSRCS
:%.c
=%.o
)
37 BADGE_OBJS
= $(BADGE_CXXOBJS
) $(BADGE_COBJS
) $(BADGE_FAROBJS
)
39 CONVERTER_SRCS
= tools
/level-converter.
cc
40 CONVERTER_OBJS
= $(CONVERTER_SRCS
:%.
cc=%.o
)
42 CDEPS
= $(BADGE_CSRCS
:%.c
=%.dep
)
43 CXXDEPS
= $(BADGE_CXXSRCS
:%.
cc=%.dep
) $(CONVERTER_SRCS
:%.
cc=%.dep
)
44 FARDEPS
= $(BADGE_FAROBJS
:%.o
=%.dep
)
45 DEPS
= $(CDEPS
) $(CXXDEPS
) $(FARDEPS
)
49 .PHONY
: all dep
clean distclean play
51 all: dep
$(BADGE
) $(CONVERTER
)
54 $(BADGE_COBJS
) : %.o
: %.c
55 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -c
-o
$@
$<
57 $(BADGE_CXXOBJS
) : %.o
: %.
cc
58 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) -c
-o
$@
$<
60 $(BADGE_FAROBJS
) : %.o
: ..
/badge
/%.c
61 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -c
-o
$@
$<
63 $(BADGE
): $(BADGE_OBJS
)
64 $(CXX
) $(CXXFLAGS
) $(LDFLAGS
) -o
$@
$+ $(LDLIBS
)
69 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -MM
$< -MT
$@
-MT
$(@
:%.dep
=%.o
) -MF
$@
71 $(CXXDEPS
): %.dep
: %.
cc
72 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) -MM
$< -MT
$@
-MT
$(@
:%.dep
=%.o
) -MF
$@
74 $(FARDEPS
): %.dep
: ..
/badge
/%.c
75 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -MM
$< -MT
$@
-MT
$(@
:%.dep
=%.o
) -MF
$@
80 $(RM
) $(BADGE_OBJS
) $(CONVERTER_OBJS
) $(BADGE
) $(CONVERTER
)
83 $(RM
) $(DEPS
) $(wildcard *~
)
85 $(CONVERTER
): $(CONVERTER_OBJS
)
86 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) $(LDFLAGS
) -o
$@
$+ $(LDLIBS
)
This page took 0.057112 seconds and 5 git commands to generate.