File: Makefile

package info (click to toggle)
gemdropx 0.7-8
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,796 kB
  • ctags: 152
  • sloc: ansic: 1,480; makefile: 71
file content (53 lines) | stat: -rw-r--r-- 1,276 bytes parent folder | download
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
# makefile for gemdropx

# Gem Drop X

# by Bill Kendrick
# bill@newbreedsoftware.com
# http://www.newbreedsoftware.com/

# Atari version: August 17, 1997 - September 24, 1997
# X Window version: November 5, 1997 - November 21, 1997
# X Window Updates: July 29, 1998- March 28, 1999
# 100% SDL Version: December 27, 1999

installbin = install -g root -o root -m 755
installdat = install -g root -o root -m 644

DATA_PREFIX=$(DESTDIR)/usr/share/games/gemdropx/data
SDL_CFLAGS := $(shell sdl-config --cflags)
SDL_LDFLAGS := $(shell sdl-config --libs)


MIXER=-lSDL_mixer
NOSOUNDFLAG=$(SOUND)SOUND
JOYFLAG=$(JOY)JOYSTICK


CFLAGS=-Wall $(SDL_CFLAGS) \
	-DDATA_PREFIX=\"$(DATA_PREFIX)\" -D$(NOSOUNDFLAG) -D$(JOYFLAG)
SDL_LIB=$(MIXER) $(SDL_LDFLAGS)


all:	gemdropx

nosound:
	make MIXER= NOSOUNDFLAG=NOSOUND JOY=$(JOY)

install:
	-mkdir $(DESTDIR)/usr/share/games/gemdropx/data/images
	-$(installdat) data/images/* $(DESTDIR)/usr/share/games/gemdropx/data/images/
	-mkdir $(DESTDIR)/usr/share/games/gemdropx/data/sounds
	-$(installdat) data/sounds/* $(DESTDIR)/usr/share/games/gemdropx/data/sounds/
	-$(installbin) gemdropx $(DESTDIR)/usr/games/

clean:
	-rm gemdropx
	-rm *.o


gemdropx:	gemdropx.o
	$(CC) $(CFLAGS) -o gemdropx gemdropx.o $(SDL_LIB) -lm


gemdropx.o:	gemdropx.c