File: Makefile

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

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

all: pathogen

CXXFLAGS := $(shell sdl-config --cflags)
LDFLAGS := $(shell sdl-config --libs) -lSDL_image -lSDL_mixer -lGLU -lGL

pathogen: $(objects)
	$(CXX) -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)