b0639c999fd42fed08c92aaa70e381d6d7dfc774
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
12 BADGE_CXXSRCS
= mock-main.
cc \
13 mock
/badge_worker.
cc \
17 BADGE_CSRCS
= badge_main_loop.c
19 BADGE_FAROBJS
= ui
/font.o \
21 jumpnrun
/collision.o \
23 jumpnrun
/game_state.o \
26 jumpnrun
/level_load.o \
33 BADGE_CXXOBJS
= $(BADGE_CXXSRCS
:%.
cc=%.o
)
34 BADGE_COBJS
= $(BADGE_CSRCS
:%.c
=%.o
)
35 BADGE_OBJS
= $(BADGE_CXXOBJS
) $(BADGE_COBJS
) $(BADGE_FAROBJS
)
37 CONVERTER_SRCS
= tools
/level-converter.
cc
38 CONVERTER_OBJS
= $(CONVERTER_SRCS
:%.
cc=%.o
)
40 CDEPS
= $(BADGE_CSRCS
:%.c
=%.dep
)
41 CXXDEPS
= $(BADGE_CXXSRCS
:%.
cc=%.dep
) $(CONVERTER_SRCS
:%.
cc=%.dep
)
42 FARDEPS
= $(BADGE_FAROBJS
:%.o
=%.dep
)
43 DEPS
= $(CDEPS
) $(CXXDEPS
) $(FARDEPS
)
45 LDLIBS
= $$(pkg-config
--libs gtkmm-3.0
)
48 .PHONY
: all dep
clean distclean play
50 all: dep
$(BADGE
) $(CONVERTER
)
53 $(BADGE_COBJS
) : %.o
: %.c
54 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -c
-o
$@
$<
56 $(BADGE_CXXOBJS
) : %.o
: %.
cc
57 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) -c
-o
$@
$<
59 $(BADGE_FAROBJS
) : %.o
: ..
/badge
/%.c
60 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -c
-o
$@
$<
62 $(BADGE
): $(BADGE_OBJS
)
63 $(CXX
) $(CXXFLAGS
) $(LDFLAGS
) -o
$@
$+ $(LDLIBS
)
68 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -MM
$< -MT
$@
-MT
$(@
:%.dep
=%.o
) -MF
$@
70 $(CXXDEPS
): %.dep
: %.
cc
71 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) -MM
$< -MT
$@
-MT
$(@
:%.dep
=%.o
) -MF
$@
73 $(FARDEPS
): %.dep
: ..
/badge
/%.c
74 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -MM
$< -MT
$@
-MT
$(@
:%.dep
=%.o
) -MF
$@
79 $(RM
) $(BADGE_OBJS
) $(CONVERTER_OBJS
) $(BADGE
) $(CONVERTER
)
82 $(RM
) $(DEPS
) $(wildcard *~
)
84 $(CONVERTER
): $(CONVERTER_OBJS
)
85 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) $(LDFLAGS
) $(LDLIBS
) -o
$@
$+
This page took 0.040189 seconds and 3 git commands to generate.