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 \
27 jumpnrun
/level_load.c \
30 BADGE_CXXOBJS
= $(BADGE_CXXSRCS
:%.
cc=%.o
)
31 BADGE_COBJS
= $(BADGE_CSRCS
:%.c
=%.o
)
32 BADGE_OBJS
= $(BADGE_CXXOBJS
) $(BADGE_COBJS
)
34 CONVERTER_SRCS
= tools
/level-converter.
cc
35 CONVERTER_OBJS
= $(CONVERTER_SRCS
:%.
cc=%.o
)
37 CDEPS
= $(BADGE_CSRCS
:%.c
=%.dep
)
38 CXXDEPS
= $(BADGE_CXXSRCS
:%.
cc=%.dep
) $(CONVERTER_SRCS
:%.
cc=%.dep
)
39 DEPS
= $(CDEPS
) $(CXXDEPS
)
41 LDLIBS
= $$(pkg-config
--libs gtkmm-3.0
)
44 .PHONY
: all dep
clean distclean play
46 all: dep
$(BADGE
) $(CONVERTER
)
49 $(BADGE_COBJS
) : %.o
: %.c
50 $(CC
) $(CPPFLAGS
) $(CFLAGS
) $(LDFLAGS
) -c
-o
$(@
:..
/badge
/%=%) $< $(LDLIBS
)
52 $(BADGE_CXXOBJS
) : %.o
: %.
cc
53 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) $(LDFLAGS
) -c
-o
$@
$< $(LDLIBS
)
55 $(BADGE
): $(BADGE_OBJS
)
56 $(CXX
) $(CXXFLAGS
) $(LDFLAGS
) -o
$@
$(+:..
/badge
/%=%) $(LDLIBS
)
61 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -MM
$< -MT
$(<:%.c
=%.o
) -MF
$@
63 $(CXXDEPS
): %.dep
: %.
cc
64 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) -MM
$< -MT
$(<:%.
cc=%.o
) -MF
$@
69 $(RM
) $(BADGE_OBJS
) $(CONVERTER_OBJS
) $(BADGE
) $(CONVERTER
)
72 $(RM
) $(DEPS
) $(wildcard *~
)
74 $(CONVERTER
): $(CONVERTER_OBJS
)
75 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) $(LDFLAGS
) $(LDLIBS
) -o
$@
$+
This page took 0.042529 seconds and 5 git commands to generate.