-
Notifications
You must be signed in to change notification settings - Fork 118
/
Copy pathMakefile
44 lines (43 loc) · 1.12 KB
/
Makefile
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
40
41
42
43
44
#File: Makefile
#Project: imagejs
#Author: jklmnn
#Homepage: http://jklmnn.de/imagejs/
#License: GNU GENERAL PUBLIC LICENSE Version 3
all:
gcc -std=c11 -c gif.c bmp.c webp.c pnm.c pgf.c main.c
gcc -lm *.o -o imagejs
rm -f *.o
i386:
gcc -m32 -std=c11 -c gif.c bmp.c webp.c pnm.c pgf.c main.c
gcc -m32 -lm *.o -o imagejs.i386
rm -f *.o
amd64:
gcc -m64 -std=c11 -c gif.c bmp.c webp.c pnm.c pgf.c main.c
gcc -m64 -lm *.o -o imagejs.x86_64
rm -f *.o
armhf:
#Tested on Raspbian
gcc -std=c99 -c gif.c bmp.c webp.c pnm.c pgf.c main.c
gcc -lm *.o -o imagejs.armhf
rm -rf *.o
win32:
i686-w64-mingw32-gcc -std=c11 -c gif.c bmp.c webp.c pnm.c pgf.c main.c
i686-w64-mingw32-gcc -lm *.o -o imagejs.exe
rm -f *.o
mach-o32:
i686-apple-darwin10-gcc -m32 -std=c99 -c gif.c bmp.c webp.c pnm.c pgf.c main.c
i686-apple-darwin10-gcc -m32 -lm *.o -o imagejs.macho-i386
rm -f *.o
mach-o64:
i686-apple-darwin10-gcc -m64 -std=c99 -c gif.c bmp.c webp.c pnm.c pgf.c main.c
i686-apple-darwin10-gcc -m64 -lm *.o -o imagejs.macho-x86_64
rm -f *.o
release:
make amd64
make i386
make win32
make mach-o32
make mach-o64
clean:
rm -f imagejs*
rm -f *.o