3 CPPFLAGS
= $$(pkg-config
--cflags gtkmm-3.0
) -I.
-I ..
/badge
4 CFLAGS
= -Wall
-Wextra
-pedantic
-std
=c99
-Werror
-O0
-g
5 CXXFLAGS
= -Wall
-Wextra
-pedantic
-std
=c
++11 -Werror
-O0
-g
8 CONVERTER
= level-converter
10 GLADEFILES
= lcd-display.glade
14 BADGE_CXXSRCS
= mock-main.
cc \
15 mock
/badge_worker.
cc \
19 BADGE_CSRCS
= badge_main_loop.c \
22 jumpnrun
/collision.c \
24 jumpnrun
/game_state.c \
27 jumpnrun
/level_load.c \
35 BADGE_CXXOBJS
= $(BADGE_CXXSRCS
:%.
cc=%.o
)
36 BADGE_COBJS
= $(BADGE_CSRCS
:%.c
=%.o
)
37 BADGE_OBJS
= $(BADGE_CXXOBJS
) $(BADGE_COBJS
)
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 DEPS
= $(CDEPS
) $(CXXDEPS
)
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
) $(LDFLAGS
) -c
-o
$(@
:..
/badge
/%=%) $< $(LDLIBS
)
57 $(BADGE_CXXOBJS
) : %.o
: %.
cc
58 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) $(LDFLAGS
) -c
-o
$@
$< $(LDLIBS
)
60 $(BADGE
): $(BADGE_OBJS
)
61 $(CXX
) $(CXXFLAGS
) $(LDFLAGS
) -o
$@
$(+:..
/badge
/%=%) $(LDLIBS
)
66 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -MM
$< -MT
$(<:%.c
=%.o
) -MF
$@
68 $(CXXDEPS
): %.dep
: %.
cc
69 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) -MM
$< -MT
$(<:%.
cc=%.o
) -MF
$@
74 $(RM
) $(BADGE_OBJS
) $(CONVERTER_OBJS
) $(BADGE
) $(CONVERTER
)
77 $(RM
) $(DEPS
) $(wildcard *~
)
79 $(CONVERTER
): $(CONVERTER_OBJS
)
80 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) $(LDFLAGS
) $(LDLIBS
) -o
$@
$+
This page took 0.048439 seconds and 5 git commands to generate.