Lines 1-30
Link Here
|
1 |
--- Makefile.orig 2006-08-13 19:18:16.000000000 +0200 |
1 |
--- Makefile.orig 2006-09-03 20:17:13.000000000 +0200 |
2 |
+++ Makefile 2008-03-26 19:27:29.000000000 +0100 |
2 |
+++ Makefile 2008-04-30 19:57:29.216855616 +0200 |
3 |
@@ -1,15 +1,13 @@ |
3 |
@@ -1,12 +1,10 @@ |
4 |
PACKAGES = clanCore-0.8 clanDisplay-0.8 clanApp-0.8 clanGL-0.8 clanSDL-0.8 |
4 |
PACKAGES = clanCore-0.8 clanDisplay-0.8 clanApp-0.8 clanGL-0.8 clanSDL-0.8 |
5 |
-LIBS = `pkg-config --libs $(PACKAGES)` |
5 |
-LIBS = `pkg-config --libs $(PACKAGES)` |
6 |
-OPTIONS = -Iincludes -Wall -g |
6 |
-OPTIONS = -Iincludes -Wall -g |
7 |
+LIBS = `pkg-config --libs $(PACKAGES)` $(PTHREAD_LIBS) |
7 |
+LIBS = `pkg-config --libs $(PACKAGES)` $(PTHREAD_LIBS) |
8 |
+OPTIONS = -Iincludes -I/usr/local/include -Wall -g |
8 |
+OPTIONS = -Iincludes -I/usr/local/include -Wall -g |
9 |
LINKER_OPTIONS = #-u malloc -lefence |
9 |
LINKER_OPTIONS = #-u malloc -lefence |
10 |
STATIC_LIBS = `pkg-config --libs $(PACKAGES) --static` |
10 |
STATIC_LIBS = `pkg-config --libs $(PACKAGES) --static` |
11 |
CFLAGS = `pkg-config --cflags $(PACKAGES)` |
11 |
CFLAGS = `pkg-config --cflags $(PACKAGES)` |
12 |
|
12 |
|
13 |
-INSTALL_DIR = /usr/local/games/openalchemist |
13 |
-INSTALL_DIR = /usr/local/games/openalchemist |
14 |
- |
14 |
- |
15 |
all: openalchemist |
15 |
all: openalchemist skins/aqua.zip skins/brushed.zip |
16 |
@echo "OK" |
16 |
@echo "OK" |
17 |
- |
17 |
|
18 |
+ |
18 |
@@ -83,18 +81,11 @@ |
19 |
test: |
|
|
20 |
@echo "Test dependances installation" |
21 |
pkg-config --exists $(PACKAGES) |
22 |
@@ -60,20 +58,13 @@ |
23 |
-rm openalchemist |
24 |
-rm skins/aqua.zip |
25 |
-rm skins/brushed.zip |
19 |
-rm skins/brushed.zip |
26 |
- |
20 |
|
27 |
+ |
|
|
28 |
install: openalchemist |
21 |
install: openalchemist |
29 |
- mkdir $(INSTALL_DIR) |
22 |
- mkdir $(INSTALL_DIR) |
30 |
- mkdir $(INSTALL_DIR)/skins |
23 |
- mkdir $(INSTALL_DIR)/skins |
Lines 37-48
Link Here
|
37 |
- rm $(INSTALL_DIR)/* -R |
30 |
- rm $(INSTALL_DIR)/* -R |
38 |
- rmdir $(INSTALL_DIR) |
31 |
- rmdir $(INSTALL_DIR) |
39 |
- rm /usr/local/bin/openalchemist |
32 |
- rm /usr/local/bin/openalchemist |
40 |
- |
33 |
- |
41 |
+ mkdir -p $(PREFIX)/bin |
34 |
+ install -d -o root -g wheel -m 755 $(PREFIX)/bin |
42 |
+ mkdir -p $(PREFIX)/share/games/openalchemist/skins |
35 |
+ install -d -o root -g wheel -m 755 $(DATADIR)/skins |
43 |
+ cp openalchemist $(PREFIX)/bin/ |
36 |
+ install -s -o root -g wheel -m 555 openalchemist $(PREFIX)/bin/ |
44 |
+ cp skins/aqua.zip $(PREFIX)/share/games/openalchemist/skins/aqua.zip |
37 |
+ install -o root -g wheel -m 444 skins/aqua.zip $(DATADIR)/skins/aqua.zip |
45 |
+ cp skins/brushed.zip $(PREFIX)/share/games/openalchemist/skins/brushed.zip |
38 |
+ install -o root -g wheel -m 444 skins/brushed.zip $(DATADIR)/skins/brushed.zip |
46 |
|
39 |
|
47 |
static: includes/*.h bin/main.o bin/game.o bin/key_events.o bin/detect_to_destroy.o bin/detect_to_fall.o bin/drawing.o bin/hightscores.o bin/pause.o bin/preferences.o bin/skins-selector.o skins/aqua.zip skins/brushed.zip |
40 |
static: includes/*.h bin/misc.o bin/main.o bin/game.o bin/key_events.o bin/detect_to_destroy.o bin/detect_to_fall.o bin/drawing.o bin/hightscores.o bin/pause.o bin/preferences.o bin/skins-selector.o skins/aqua.zip skins/brushed.zip |
48 |
@echo "On assemble le fichier final" |
41 |
@echo "On assemble le fichier final" |