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 \
21 jumpnrun
/collision.c \
28 BADGE_CXXOBJS
= $(BADGE_CXXSRCS
:%.
cc=%.o
)
29 BADGE_COBJS
= $(BADGE_CSRCS
:%.c
=%.o
)
30 BADGE_OBJS
= $(BADGE_CXXOBJS
) $(BADGE_COBJS
)
32 CONVERTER_SRCS
= tools
/level-converter.
cc
33 CONVERTER_OBJS
= $(CONVERTER_SRCS
:%.
cc=%.o
)
35 CDEPS
= $(BADGE_CSRCS
:%.c
=%.dep
)
36 CXXDEPS
= $(BADGE_CXXSRCS
:%.
cc=%.dep
) $(CONVERTER_SRCS
:%.
cc=%.dep
)
37 DEPS
= $(CDEPS
) $(CXXDEPS
)
39 LDLIBS
= $$(pkg-config
--libs gtkmm-3.0
)
42 .PHONY
: all dep
clean distclean play
44 all: dep
$(BADGE
) $(CONVERTER
)
47 $(BADGE_COBJS
) : %.o
: %.c
48 $(CC
) $(CPPFLAGS
) $(CFLAGS
) $(LDFLAGS
) -c
-o
$(@
:..
/badge
/%=%) $< $(LDLIBS
)
50 $(BADGE_CXXOBJS
) : %.o
: %.
cc
51 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) $(LDFLAGS
) -c
-o
$@
$< $(LDLIBS
)
53 $(BADGE
): $(BADGE_OBJS
)
54 $(CXX
) $(CXXFLAGS
) $(LDFLAGS
) $(LDLIBS
) -o
$@
$(+:..
/badge
/%=%)
59 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -MM
$< -MT
$(<:%.c
=%.o
) -MF
$@
61 $(CXXDEPS
): %.dep
: %.
cc
62 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) -MM
$< -MT
$(<:%.
cc=%.o
) -MF
$@
67 $(RM
) $(BADGE_OBJS
) $(CONVERTER_OBJS
) $(BADGE
) $(CONVERTER
)
70 $(RM
) $(DEPS
) $(wildcard *~
)
72 $(CONVERTER
): $(CONVERTER_OBJS
)
73 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) $(LDFLAGS
) $(LDLIBS
) -o
$@
$+
This page took 0.051223 seconds and 5 git commands to generate.