File: makefile

package info (click to toggle)
biniax2 1.30-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,048 kB
  • sloc: ansic: 12,972; makefile: 20
file content (18 lines) | stat: -rwxr-xr-x 718 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# BINIAX-2 1.3 MAKEFILE FOR UNIX/LINUX/MACOS SYSTEMS
# (C) 2005-2009, JORDAN TUZSUZOV
# To build the game you need the development libraries of SDL 1.2, SDL_mixer and SDL_image.
# To execute the game you need the runtimes of SDL, SDL_mixer and SDL_image.

FLAGS+=`dpkg-buildflags --get CFLAGS`
FLAGS+=`dpkg-buildflags --get CPPFLAGS`
CC=gcc
FILES=biniax.c hof.c desktop/cfg.c desktop/gfx.c desktop/snd.c desktop/inp.c desktop/sys.c
INCLUDES=-I . -I desktop
LINKTO=-lSDL -lSDL_mixer -lSDL_image
LINKTO+=`dpkg-buildflags --get LDFLAGS`
DATADIR=/usr/share/games/biniax2
AUTO=`sdl-config --libs --cflags` -DDATADIR=\"$(DATADIR)\"
TARGET=biniax2

biniax:
	$(CC) $(FLAGS) $(AUTO) $(FILES) $(INCLUDES) -o $(TARGET) $(LINKTO)