-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile-dview
30 lines (25 loc) · 839 Bytes
/
Makefile-dview
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
DVDIR = ../tools/dview
VPATH = $(DVDIR)
WEXLIB = ../wexosxwx3.a
CC = gcc -mmacosx-version-min=10.9
CXX = g++ -mmacosx-version-min=10.9
CFLAGS = -g -I. -I../include -I../../lk/src/ `wx-config-3 --cflags`
CXXFLAGS = $(CFLAGS)
LDFLAGS = -arch x86_64 `wx-config-3 --libs` `wx-config-3 --libs aui` `wx-config-3 --libs stc` -lm
OBJECTS = dview.o \
../../lk/src/sqlite3.o
TARGET = DView
$(TARGET): $(OBJECTS) $(WEXLIB)
$(CXX) -g -o $@ $^ $(LDFLAGS)
SetFile -a t $@
mkdir -p DView.app
mkdir -p DView.app/Contents
mkdir -p DView.app/Contents/MacOS
mkdir -p DView.app/Contents/Resources
cp $(TARGET) ./DView.app/Contents/MacOS
cp DView.icns ./DView.app/Contents/Resources
cp Info-dview.plist ./DView.app/Contents/Info.plist
echo "-n APPL????" >> ./DView.app/Contents/PkgInfo
clean:
rm -f $(TARGET) $(OBJECTS)
rm -rf DView.app