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
6 LDLIBS
= $$(pkg-config
--libs gtkmm-3.0
)
9 CONVERTER
= level-converter
10 LEVELLIST
= levels.txt
12 GLADEFILES
= lcd-display.glade
14 BADGE_CXXSRCS
= mock-main.
cc \
15 mock
/badge_worker.
cc \
19 BADGE_CSRCS
= badge_main_loop.c
21 BADGE_FAROBJS
= ui
/font.o \
24 jumpnrun
/collision.o \
26 jumpnrun
/game_state.o \
29 jumpnrun
/level_load.o \
36 BADGE_CXXOBJS
= $(BADGE_CXXSRCS
:%.
cc=%.o
)
37 BADGE_COBJS
= $(BADGE_CSRCS
:%.c
=%.o
)
38 BADGE_OBJS
= $(BADGE_CXXOBJS
) $(BADGE_COBJS
) $(BADGE_FAROBJS
)
40 CONVERTER_SRCS
= tools
/level-converter.
cc
41 CONVERTER_OBJS
= $(CONVERTER_SRCS
:%.
cc=%.o
)
43 CDEPS
= $(BADGE_CSRCS
:%.c
=%.dep
)
44 CXXDEPS
= $(BADGE_CXXSRCS
:%.
cc=%.dep
) $(CONVERTER_SRCS
:%.
cc=%.dep
)
45 FARDEPS
= $(BADGE_FAROBJS
:%.o
=%.dep
)
46 DEPS
= $(CDEPS
) $(CXXDEPS
) $(FARDEPS
)
50 .PHONY
: all dep
clean distclean play
52 all: dep
$(BADGE
) $(CONVERTER
)
55 $(BADGE_COBJS
) : %.o
: %.c
56 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -c
-o
$@
$<
58 $(BADGE_CXXOBJS
) : %.o
: %.
cc
59 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) -c
-o
$@
$<
61 $(BADGE_FAROBJS
) : %.o
: ..
/badge
/%.c
62 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -c
-o
$@
$<
64 $(BADGE
): $(BADGE_OBJS
)
65 $(CXX
) $(CXXFLAGS
) $(LDFLAGS
) -o
$@
$+ $(LDLIBS
)
70 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -MM
$< -MT
$@
-MT
$(@
:%.dep
=%.o
) -MF
$@
72 $(CXXDEPS
): %.dep
: %.
cc
73 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) -MM
$< -MT
$@
-MT
$(@
:%.dep
=%.o
) -MF
$@
75 $(FARDEPS
): %.dep
: ..
/badge
/%.c
76 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -MM
$< -MT
$@
-MT
$(@
:%.dep
=%.o
) -MF
$@
81 $(RM
) $(BADGE_OBJS
) $(CONVERTER_OBJS
) $(BADGE
) $(CONVERTER
)
84 $(RM
) $(DEPS
) $(wildcard *~
)
86 $(CONVERTER
): $(CONVERTER_OBJS
)
87 $(CXX
) $(CPPFLAGS
) $(CXXFLAGS
) $(LDFLAGS
) -o
$@
$+ $(LDLIBS
)
91 ls ..
/badge
/jumpnrun
/levels
/*.lv | xargs
-n1
basename | cut
-d .
-f
1 > $(LEVELLIST
)
This page took 0.042297 seconds and 5 git commands to generate.