-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
41 lines (30 loc) · 1.15 KB
/
makefile
File metadata and controls
41 lines (30 loc) · 1.15 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
COMPILER = gcc
FLAGS = -o
NAME = floppysolver
MAIN = ./src/main.c
test:
make clean
clear
make compile
./floppysolver
compile: $(MAIN)
clang -framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL lib/libraylib.a src/main.c src/floppy.c src/helpers.c src/moves.c -I raylib -o floppysolver
clean:
rm -f floppysolver
rm -rf floppysolver.dSYM
linkerCheck:
clear
clang -framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL lib/libraylib.a src/main.c -I raylib -o floppysolver -v
time:
make compile
time ./floppysolver
macBuild:
make compile
rm -rf floppysolver.app
mkdir floppysolver.app
mkdir floppysolver.app/Contents
mkdir floppysolver.app/Contents/MacOS
mkdir floppysolver.app/Contents/Resources
touch floppysolver.app/Contents/Info.plist
mv floppysolver floppysolver.app/Contents/MacOS
echo "<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleExecutable</key> <string>my_app</string> </dict> </plist>" >> floppysolver.app/Contents/Info.plist