starfighter/Makefile

57 lines
1.6 KiB
Makefile
Raw Normal View History

2012-12-09 17:02:58 +01:00
CXXFLAGS ?= -O2 -Wall -g
CXXFLAGS += `pkg-config --cflags sdl2 SDL2_image SDL2_mixer`
2013-09-30 16:52:43 +02:00
LIBS = `pkg-config --libs sdl2 SDL2_image SDL2_mixer`
2016-01-05 02:17:06 +01:00
OBJS = alien.o audio.o bullet.o cargo.o collectable.o colors.o cutscene.o engine.o event.o explosion.o game.o gfx.o intermission.o loadSave.o messages.o misc.o missions.o player.o renderer.o resources.o screen.o ship.o shop.o Starfighter.o title.o weapons.o window.o
2012-12-09 17:02:58 +01:00
1.5 release Changes since version 1.4 summarized: * Lots of code cleanup * Removed preservation of permissions when installing * Replaced symlinks with copies * Added .desktop file (from openSUSE package maintainer) * Fixed mouse cursor position bug * Removed a broken event from the Odeon mission * Moved almost everything from the "data" directory to C source code * Renamed "Original" difficulty to "Classic" * Made Classic difficulty closer to the original * Repositioned the logo and menu so that it's a bit higher * Fixed the bug that caused mobile rays to shoot 5 green bullets * Radio messages no longer suppress the "Target" text on the target arrow * Friendly ships now have green arrows * Sid, Phoebe, Ursula, and Kline now have special text on their target arrows and shield displays * Some dialog changes * Plasma and rocket ammo is now much cheaper ($1) * Fixed being able to get hurt after the mission is over * Changed the Poswic mission target to Sid * Removed the brief stop at the end of the Ellesh mission * Kline now permitted to drop mines in all of his appearances * Kline now switches primary weapons on Venus (like in prior appearances) * Executive transport AI changed to "evasive" * Experimental fighter now more likely to run away with powerful shots * Renamed "Comms" to "Missions" and adjusted its look * Removed instant teleportation between planets in Spirit * Added small interception chance to Spirit * Move very quickly between planets if no interception chance * Now, portable save format * Some tweaks to the Status screen * Updated documentation * Play sounds more quietly when further away
2016-01-12 02:01:11 +01:00
VERSION = 1.5
2012-12-09 17:02:58 +01:00
PROG = starfighter
DOCS = docs/*
DATA = data gfx sound music
DATAFILES = data/* gfx/* sound/* music/*
2012-12-09 17:02:58 +01:00
PREFIX ?= /usr
BINDIR ?= $(PREFIX)/games/
DATADIR ?= $(PREFIX)/share/games/parallelrealities/
DOCDIR ?= $(PREFIX)/share/doc/$(PROG)/
# top-level rule to create the program.
ALL = $(PROG)
all: $(ALL)
# compiling other source files.
2013-07-11 14:24:37 +02:00
%.o: src/%.cpp src/*.h
$(CXX) $(CXXFLAGS) -c -DVERSION=\"$(VERSION)\" -DDATADIR=\"$(DATADIR)\" $<
2012-12-09 17:02:58 +01:00
# linking the program.
$(PROG): $(OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) -o $(PROG) $(LIBS)
# cleaning everything that can be automatically recreated with "make".
clean:
$(RM) $(OBJS) $(ALL)
# install
install: $(ALL)
mkdir -p $(DESTDIR)$(BINDIR)
mkdir -p $(DESTDIR)$(DATADIR)
mkdir -p $(DESTDIR)$(DOCDIR)
install -m 755 $(PROG) $(DESTDIR)$(BINDIR)$(PROG)
cp -r $(DATA) $(DESTDIR)$(DATADIR)
cp $(DOCS) $(DESTDIR)$(DOCDIR)
2012-12-09 17:02:58 +01:00
optimise:
advpng -z gfx/*.png
jpegoptim --strip-all gfx/*.jpg
dist:
rm -rf starfighter-$(VERSION)
mkdir starfighter-$(VERSION)
cp --parents -lt starfighter-$(VERSION) `git ls-files`
git log >starfighter-$(VERSION)/ChangeLog
tar czf starfighter-$(VERSION).tar.gz starfighter-$(VERSION)
rm -rf starfighter-$(VERSION)
2015-02-26 17:22:57 +01:00
.PHONY: all clean install optimise dist