]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - makefile
Don't use sdlmain in the pak tool
[quix0rs-blobwars.git] / makefile
index c59443cadbdb7c1dc8a51f22e08c5068cd5beccf..509c2ff862740f21acbab3274a2084beeee0c017 100755 (executable)
--- a/makefile
+++ b/makefile
@@ -4,7 +4,7 @@ DOCS = doc/*
 ICONS = icons/
 DATA = data gfx sound music
 
-VERSION = 1.18
+VERSION = 1.19
 RELEASE ?= 0
 USEPAK ?= 0
 
@@ -82,16 +82,16 @@ all: $(ALL)
 
 # linking the program.
 $(PROG): $(GAMEOBJS)
-       $(CXX) $(LIBS) $(GAMEOBJS) -o $(PROG)
+       $(CXX) $(GAMEOBJS) -o $(PROG) $(LIBS)
        
 pak: $(PAKOBJS)
-       $(CXX) $(LIBS) $(PAKOBJS) -o pak
+       $(CXX) $(PAKOBJS) -o pak $(LIBS)
 
 %.mo: %.po
        msgfmt -c -o $@ $<
 
 mapeditor: $(MAPOBJS)
-       $(CXX) $(LIBS) $(MAPOBJS) -o mapeditor
+       $(CXX) $(MAPOBJS) -o mapeditor $(LIBS)
 
 # cleaning everything that can be automatically recreated with "make".
 clean:
@@ -118,6 +118,7 @@ ifeq ($(USEPAK), 1)
 else
        cp -pr $(DATA) $(DESTDIR)$(DATADIR)
 endif
+       cp -p $(DOCS) $(DESTDIR)$(DOCDIR)
        cp -p $(ICONS)$(PROG).png $(DESTDIR)$(ICONDIR)32x32/apps/
        cp -p $(ICONS)$(PROG)-mini.png $(DESTDIR)$(ICONDIR)16x16/apps/$(PROG).png
        cp -p $(ICONS)$(PROG)-large.png $(DESTDIR)$(ICONDIR)64x64/apps/$(PROG).png