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
8 CONVERTER
= level-converter
10 GLADEFILES
= lcd-display.glade
12 BADGE_CXXSRCS
= mock-main.
cc \
13 mock
/badge_worker.
cc \
17 BADGE_CSRCS
= badge_main_loop.c
19 BADGE_FAROBJS
= ui
/font.o \
22 jumpnrun
/collision.o \
24 jumpnrun
/game_state.o \
27 jumpnrun
/level_load.o \
34 BADGE_CXXOBJS
= $(BADGE_CXXSRCS
:%.
cc=%.o
)
35 BADGE_COBJS
= $(BADGE_CSRCS
:%.c
=%.o
)
36 BADGE_OBJS
= $(BADGE_CXXOBJS
) $(BADGE_COBJS
) $(BADGE_FAROBJS
)
38 CONVERTER_SRCS
= tools
/level-converter.
cc
39 CONVERTER_OBJS
= $(CONVERTER_SRCS
:%.
cc=%.o
)
41 CDEPS
= $(BADGE_CSRCS
:%.c
=%.dep
)
42 CXXDEPS
= $(BADGE_CXXSRCS
:%.
cc=%.dep
) $(CONVERTER_SRCS
:%.
cc=%.dep
)
43 FARDEPS
= $(BADGE_FAROBJS
:%.o
=%.dep
)
44 DEPS
= $(CDEPS
) $(CXXDEPS
) $(FARDEPS
)
46 LDLIBS
= $$(pkg-config
--libs gtkmm-3.0
)
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
) $(LDLIBS
) -o
$@
$+
This page took 0.049281 seconds and 5 git commands to generate.