-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (41 loc) · 865 Bytes
/
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
45
46
47
DEFS = \
-DHAVE_INTTYPES_H=1 \
-DHAVE_LIMITS_H=1 \
-DHAVE_MEMORY_H=1 \
-DHAVE_STDINT_H=1 \
-DHAVE_STDLIB_H=1 \
-DHAVE_STRINGS_H=1 \
-DHAVE_STRING_H=1 \
-DHAVE_SYS_PARAM_H=1 \
-DHAVE_SYS_STAT_H=1 \
-DHAVE_SYS_TYPES_H=1 \
-DHAVE_UNISTD_H=1 \
-DNO_VALUES_H=1 \
-DSTDC_HEADERS=1 \
-D_REENTRANT=1 \
-DUSE_THREAD_ALLOC=1 \
-D_THREAD_SAFE=1 \
-DMODULE_SCOPE=__private_extern__ \
-DTCL_THREADS=1 \
-DTCL_WIDE_INT_IS_LONG=1 \
-DUSE_TCL_STUBS=1 \
-DUSE_TK_STUBS=1 \
-DMAC_OSX_TK=1 \
-D_TKPORT
FRAMEWORKS = \
-framework Cocoa \
-framework Foundation \
-framework Quartz
INCLUDES = \
-I/usr/local/opt/tcl-tk/include
LIBS = \
-L/usr/local/opt/tcl-tk/lib \
-ltclstub8.6 \
-ltkstub8.6
OPTS = \
-shared \
-Os \
-Wall
Idared.dylib: src/Idared.m
mkdir -p pkg
gcc src/Idared.m $(OPTS) $(FRAMEWORKS) $(INCLUDES) $(LIBS) $(DEFS) -o Idared.dylib