Subversion Repositories Games.Prince of Persia

Rev

Rev 2 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 3
Line 6... Line 6...
6
OBJ = main.o data.o seg000.o seg001.o seg002.o seg003.o seg004.o seg005.o seg006.o seg007.o seg008.o seg009.o seqtbl.o replay.o options.o lighting.o screenshot.o
6
OBJ = main.o data.o seg000.o seg001.o seg002.o seg003.o seg004.o seg005.o seg006.o seg007.o seg008.o seg009.o seqtbl.o replay.o options.o lighting.o screenshot.o
7
CFLAGS = -Wall -std=gnu99 -D_GNU_SOURCE=1 -D_THREAD_SAFE -DOSX -O2 -I. -F.
7
CFLAGS = -Wall -std=gnu99 -D_GNU_SOURCE=1 -D_THREAD_SAFE -DOSX -O2 -I. -F.
8
LDFLAGS = -lm -framework CoreServices -F. -framework SDL2 -framework SDL2_image -framework SDL2_mixer -rpath @executable_path/../Frameworks
8
LDFLAGS = -lm -framework CoreServices -F. -framework SDL2 -framework SDL2_image -framework SDL2_mixer -rpath @executable_path/../Frameworks
9
 
9
 
10
all: $(OBJ)
10
all: $(OBJ)
11
	$(CC) -std=c++11 -Wall -O2 -c xbrz.cpp
11
	$(CC) -Wall -O2 -c xbrz.cpp
12
	$(CC) $(LDFLAGS) -lstdc++ $(OBJ) xbrz.o -o prince
12
	$(CC) $(LDFLAGS) -lstdc++ $(OBJ) xbrz.o -o prince
13
	test -d "$(NAME).app" || mkdir "$(NAME).app"
13
	test -d "$(NAME).app" || mkdir "$(NAME).app"
14
	test -d "$(NAME).app/Contents" || mkdir "$(NAME).app/Contents"
14
	test -d "$(NAME).app/Contents" || mkdir "$(NAME).app/Contents"
15
	cp Info.plist "$(NAME).app/Contents"
15
	cp Info.plist "$(NAME).app/Contents"
16
	test -d "$(NAME).app/Contents/MacOS" || mkdir "$(NAME).app/Contents/MacOS"
16
	test -d "$(NAME).app/Contents/MacOS" || mkdir "$(NAME).app/Contents/MacOS"
17
	cp prince "$(NAME).app/Contents/MacOS/$(NAME)"
17
	cp prince "$(NAME).app/Contents/MacOS/$(NAME)"
18
	test -d "$(NAME).app/Contents/Frameworks" || mkdir "$(NAME).app/Contents/Frameworks"
18
	test -d "$(NAME).app/Contents/Frameworks" || mkdir "$(NAME).app/Contents/Frameworks"
-
 
19
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2.framework"
19
	cp -pPR SDL2.framework "$(NAME).app/Contents/Frameworks"
20
	cp -pPR SDL2.framework "$(NAME).app/Contents/Frameworks"
20
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2.framework/Versions/A/_CodeSignature"
21
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2.framework/Versions/A/_CodeSignature"
21
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2.framework/Versions/A/Headers"
22
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2.framework/Versions/A/Headers"
22
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2.framework/Headers"
23
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2.framework/Headers"
-
 
24
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2_image.framework"
23
	cp -pPR SDL2_image.framework "$(NAME).app/Contents/Frameworks"
25
	cp -pPR SDL2_image.framework "$(NAME).app/Contents/Frameworks"
24
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2_image.framework/Versions/A/_CodeSignature"
26
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2_image.framework/Versions/A/_CodeSignature"
25
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2_image.framework/Versions/A/Headers"
27
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2_image.framework/Versions/A/Headers"
26
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2_image.framework/Headers"
28
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2_image.framework/Headers"
-
 
29
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2_mixer.framework"
27
	cp -pPR SDL2_mixer.framework "$(NAME).app/Contents/Frameworks"
30
	cp -pPR SDL2_mixer.framework "$(NAME).app/Contents/Frameworks"
28
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2_mixer.framework/Versions/A/_CodeSignature"
31
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2_mixer.framework/Versions/A/_CodeSignature"
29
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2_mixer.framework/Versions/A/Headers"
32
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2_mixer.framework/Versions/A/Headers"
30
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2_mixer.framework/Headers"
33
	rm -rf "$(NAME).app/Contents/Frameworks/SDL2_mixer.framework/Headers"
31
	test -d "$(NAME).app/Contents/Resources" || mkdir "$(NAME).app/Contents/Resources"
34
	test -d "$(NAME).app/Contents/Resources" || mkdir "$(NAME).app/Contents/Resources"