-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 824 Bytes
/
Makefile
File metadata and controls
33 lines (25 loc) · 824 Bytes
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
#
# DS3activate
#
CC=clang
#CXX = clang++
EXE = DS3activate
SOURCE=ds3activate.c
LIBS += -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo
CFLAGS = -I/usr/local/include -I/opt/local/include
##---------------------------------------------------------------------
## BUILD RULES
##---------------------------------------------------------------------
all: $(EXE) package_app
@echo Build complete
$(EXE):
$(CC) -o $(EXE) $(SOURCE) $(CXXFLAGS) $(LIBS)
package_app:
mkdir -p DS3activate.app/Contents/{MacOS,Resources}
cp DS3activate DS3activate.app/Contents/MacOS/DS3activate
cp Info.plist DS3activate.app/Contents/
cp ds3.sh DS3activate.app/Contents/MacOS/ds3
chmod +x DS3activate.app/Contents/MacOS/ds3
cp AppIcon.icns DS3activate.app/Contents/Resources
clean:
rm -f $(EXE) $(OBJS)