File: Makefile

package info (click to toggle)
linthesia 0.4.3-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,512 kB
  • ctags: 878
  • sloc: cpp: 5,266; xml: 71; makefile: 68
file content (32 lines) | stat: -rw-r--r-- 919 bytes parent folder | download | duplicates (2)
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
# -*- mode: makefile-gmake; coding: utf-8 -*-

GRAPHDIR?=../graphics

CXX = g++
CXXFLAGS =  -I . -I libmidi -Wall -ansi -O2
CXXFLAGS += `pkg-config --cflags gtkmm-2.4 gconfmm-2.6 gtkglextmm-1.2 alsa` -DGRAPHDIR="\"$(GRAPHDIR)\""
LDLIBS = `pkg-config --libs gtkmm-2.4 gconfmm-2.6 gtkglextmm-1.2 alsa`
TARGET = linthesia

all: $(TARGET)

$(TARGET): main.o LinthesiaError.o UserSettings.o \
	CompatibleSystem.o FileSelector.o Renderer.o \
	Tga.o GameState.o TitleState.o TextWriter.o \
	MenuLayout.o DeviceTile.o StringTile.o MidiComm.o \
	TrackSelectionState.o TrackTile.o PlayingState.o \
	StatsState.o KeyboardDisplay.o libmidi/libmidi.a
	$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS)

libmidi/libmidi.a:
	$(MAKE) -C libmidi

install: all
	-mkdir -p $(DESTDIR)/usr/games
	install -m 755 $(TARGET) -g root -o root $(DESTDIR)/usr/games/

.PHONY:clean
clean:
	find . -name "*.o" -delete
	find . -name "*~" -delete
	$(RM) $(TARGET)