From 8018713e3a119b43086b518bc4cb3b07e39a49f9 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Mon, 6 Feb 2017 11:29:24 -0500 Subject: [PATCH] Removed the old makefile. --- Makefile.old | 64 ---------------------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 Makefile.old diff --git a/Makefile.old b/Makefile.old deleted file mode 100644 index 3ff4c06..0000000 --- a/Makefile.old +++ /dev/null @@ -1,64 +0,0 @@ -CXXFLAGS ?= -O2 -Wall -g -CXXFLAGS += `pkg-config --cflags sdl2 SDL2_image SDL2_mixer` -LIBS = `pkg-config --libs sdl2 SDL2_image SDL2_mixer` -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 info.o intermission.o mission.o player.o radio.o renderer.o save.o screen.o ship.o shop.o Starfighter.o title.o weapons.o window.o - -VERSION = 1.7-dev -PROG = starfighter -DOCS = docs/* -DATA = data gfx sound music -DATAFILES = data/* gfx/* sound/* music/* -LAUNCHER = misc/starfighter.desktop -ICON = misc/starfighter.png - -PREFIX ?= /usr -BINDIR ?= $(PREFIX)/games/ -DATADIR ?= $(PREFIX)/share/games/parallelrealities/ -DOCDIR ?= $(PREFIX)/share/doc/$(PROG)/ -MENUDIR ?= $(PREFIX)/share/applications/ -ICONDIR ?= $(PREFIX)/share/pixmaps/ - -# top-level rule to create the program. -ALL = $(PROG) - -all: $(ALL) - -# compiling other source files. -%.o: src/%.cpp src/*.h - $(CXX) $(CXXFLAGS) -c -DVERSION=\"$(VERSION)\" -DDATADIR=\"$(DATADIR)\" $< - -# 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) - mkdir -p $(DESTDIR)$(MENUDIR) - mkdir -p $(DESTDIR)$(ICONDIR) - - install -m 755 $(PROG) $(DESTDIR)$(BINDIR)$(PROG) - cp -r $(DATA) $(DESTDIR)$(DATADIR) - cp $(DOCS) $(DESTDIR)$(DOCDIR) - install -m 644 $(LAUNCHER) $(DESTDIR)$(MENUDIR) - install -m 644 $(ICON) $(DESTDIR)$(ICONDIR) - -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) - -.PHONY: all clean install optimise dist