File: Makefile

package info (click to toggle)
pathogen 1.1.1-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 524 kB
  • ctags: 411
  • sloc: cpp: 2,035; ansic: 57; makefile: 25
file content (29 lines) | stat: -rw-r--r-- 808 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
# Pathogen Warrior
#
# Linux Makefile
# Contributed by Ion
#
# $Id: Makefile,v 1.2 2004/07/12 16:05:50 tonic Exp $
# $Revision: 1.2 $

sources := $(sort $(wildcard src/*.cpp))
objects := $(sources:%.cpp=%.o)

all: pathogen

CXXFLAGS := $(shell sdl-config --cflags) `dpkg-buildflags --get CXXFLAGS`
LDFLAGS := $(shell sdl-config --libs) -lSDL_image -lSDL_mixer -lGLU -lGL `dpkg-buildflags --get LDFLAGS`
CFLAGS := `dpkg-buildflags --get CFLAGS`

pathogen: $(objects)
	$(CXX) $(CFLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)

install:
	mkdir -p $(DESTDIR)/usr/games
	mkdir -p $(DESTDIR)/usr/share/pathogen
	install -o root -g games -m 644 data/* $(DESTDIR)/usr/share/pathogen
	install -o root -g games -m 755 pathogen $(DESTDIR)/usr/games

.PHONY: clean
clean:
	$(RM) pathogen $(objects)