-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
34 lines (25 loc) · 1.47 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
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# MetaBax - Makefile #
# #
# This is a Makefile for Linux/UNIX-based systems which builds mbtv using #
# the libmetabax library. Note that as of writing this, libmetabax is #
# linked statically, so no additional library compilation is required. #
# #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Copyright (c) 2013, Brandon "Breakthrough" Castellano. #
# #
# libmetabax is licensed under the BSD 2-Clause License; see the included #
# COPYRIGHT file, or visit http://github.com/Breakthrough/MetaBax. #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
all: libmetabax mbtv
libmetabax: ./libmetabax/MetaBax.o
mbtv: ./mbtv/mbtv
./libmetabax/MetaBax.o:
g++ -Wall -c -o ./libmetabax/MetaBax.o ./libmetabax/MetaBax.cpp
./mbtv/mbtv:
g++ `pkg-config --cflags sdl` -I ./libmetabax -c ./mbtv/main.cpp -o ./mbtv/main.o
g++ ./mbtv/main.o ./libmetabax/MetaBax.o -o ./mbtv/mbtv `pkg-config --libs sdl`
clean:
rm -f ./mbtv/mbtv
rm -f ./libmetabax/MetaBax.o