Subversion Repositories Games.Prince of Persia

Rev

Rev 3 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 5
Line 1... Line 1...
1
# Prince of Persia Makefile for macOS
1
# Prince of Persia Makefile for macOS
2
 
2
 
3
NAME = Prince of Persia
3
NAME = Prince of Persia
4
CC = clang
4
CC = clang
5
HFILES = common.h config.h data.h proto.h types.h
5
HFILES = common.h config.h data.h proto.h types.h
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 xbrz.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) -Wall -O2 -c xbrz.cpp
-
 
12
	$(CC) $(LDFLAGS) -lstdc++ $(OBJ) xbrz.o -o prince
11
	$(CC) $(LDFLAGS) -lstdc++ $(OBJ) -o prince
13
	test -d "$(NAME).app" || mkdir "$(NAME).app"
12
	test -d "$(NAME).app" || mkdir "$(NAME).app"
14
	test -d "$(NAME).app/Contents" || mkdir "$(NAME).app/Contents"
13
	test -d "$(NAME).app/Contents" || mkdir "$(NAME).app/Contents"
15
	cp Info.plist "$(NAME).app/Contents"
14
	cp Info.plist "$(NAME).app/Contents"
16
	test -d "$(NAME).app/Contents/MacOS" || mkdir "$(NAME).app/Contents/MacOS"
15
	test -d "$(NAME).app/Contents/MacOS" || mkdir "$(NAME).app/Contents/MacOS"
17
	cp prince "$(NAME).app/Contents/MacOS/$(NAME)"
16
	cp prince "$(NAME).app/Contents/MacOS/$(NAME)"