-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmakefile
More file actions
39 lines (28 loc) · 1.28 KB
/
makefile
File metadata and controls
39 lines (28 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
CFLAGS = -Wall -O2 -I./ -static
CC=gcc
STRIP=strip
CCARM=/root/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gcc
STRIPARM=/root/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-strip
CCWIN=i586-mingw32msvc-gcc
WINDRES=i586-mingw32msvc-windres
default:fake_cod2 fake_cod2_arm fake_cod2.exe
fake_cod2: md5.o pb_md5.o fake_cod2.o
${CC} ${CFLAGS} md5.o pb_md5.o fake_cod2.o -o fake_cod2
${STRIP} fake_cod2
fake_cod2_arm:
${CCARM} ${CFLAGS} -march=armv7-a -c md5.c -o md5_arm.o
${CCARM} ${CFLAGS} -march=armv7-a -c pb_md5.c -o pb_md5_arm.o
${CCARM} ${CFLAGS} -march=armv7-a -c fake_cod2.c -o fake_cod2_arm.o
${CCARM} ${CFLAGS} -march=armv7-a md5_arm.o pb_md5_arm.o fake_cod2_arm.o -o fake_cod2_arm
${STRIPARM} fake_cod2_arm
fake_cod2.exe:
${CCWIN} -W -Wall -pedantic -std=c99 -c md5.c -o md5_win.o
${CCWIN} -W -Wall -pedantic -std=c99 -c pb_md5.c -o pb_md5_win.o
${CCWIN} -W -Wall -pedantic -std=c99 -DWIN32 -c strsep.c -o strsep_win.o
${CCWIN} -W -Wall -pedantic -std=c99 -DWIN32 -c fake_cod2.c -o fake_cod2_win.o
${WINDRES} cod2.rc -O coff -o cod2.res
${CCWIN} -W -Wall -pedantic -std=c99 -DWIN32 md5_win.o pb_md5_win.o strsep_win.o fake_cod2_win.o cod2.res -o fake_cod2.exe -lwsock32
clean:
rm -f *.o *.res
distclean:
rm -f *.o *.res fake_cod2 fake_cod2_arm fake_cod2.exe