-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
56 lines (47 loc) · 1.4 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
METHANE_FLAGS = $(shell pkg-config --cflags clanCore-4.2 clanDisplay-4.2 clanApp-4.2 clanGL-4.2 clanSound-4.2 libmikmod) -Isources
METHANE_LIBS = $(shell pkg-config --libs clanCore-4.2 clanDisplay-4.2 clanApp-4.2 clanGL-4.2 clanSound-4.2 libmikmod)
CXX = g++
OBJF = sources/precomp.o \
sources/player.o \
sources/sound.o \
sources/gfxoff.o \
sources/target.o \
sources/bititem.o \
sources/methane.o \
sources/goodie.o \
sources/objlist.o \
sources/global.o \
sources/gasobj.o \
sources/game.o \
sources/bitdraw.o \
sources/baddie.o \
sources/doc.o \
sources/misc.o \
sources/power.o \
sources/bitgroup.o \
sources/weapon.o \
sources/render_batch_triangle.o \
sources/ClanMikmod/soundprovider_mikmod.o \
sources/ClanMikmod/module_reader.o \
sources/ClanMikmod/setupmikmod.o \
sources/ClanMikmod/soundprovider_mikmod_session.o \
sources/suck.o \
sources/mapdata.o \
sources/boss.o \
sources/maps.o
all: message methane
message:
@echo "Compiling Super Methane Brothers."
@echo "================================="
methane: ${OBJF}
${CXX} ${CXXFLAGS} ${OBJF} -o methane ${METHANE_LIBS}
clean:
@rm -f sources/*.o
@rm -f sources/ClanMikmod/*.o
@rm -f methane
distclean: clean
# The main source code
%.o:%.cpp
@echo " Compiling $<..."
${CXX} ${CXXFLAGS} ${METHANE_FLAGS} -c $< -o $@
.PHONY: all message clean distclean