Add comment from darco about what the "Palette Browser" dock dialog was intended...
[synfig.git] / synfig-osx / trunk / launcher / Imakefile
1 XCOMM $XFree86: xc/programs/Xserver/hw/darwin/Imakefile,v 1.14 2002/08/28 06:19:15 torrey Exp $
2
3 #include <Server.tmpl>
4 #define IHaveSubdirs
5
6 LinkSourceFile(XFree86.man,../xfree86)
7 LinkSourceFile(appledri.h,$(LIBSRC)/GL/apple)
8 LinkSourceFile(appledristr.h,$(LIBSRC)/GL/apple)
9
10 SRCS =  darwin.c \
11         darwin-input.c \
12         darwin-keyboard.c \
13         darwin-new-keymap.c \
14         darwin-old-keymap.c \
15         keysym2ucs.c \
16         quartz.c \
17         quartz-audio.c \
18         quartz-cursor.c \
19         quartz-server.c \
20         rootless-common.c \
21         rootless-gc.c \
22         rootless-picture.c \
23         rootless-screen.c \
24         rootless-val-tree.c \
25         rootless-window.c \
26         pseudoramiX.c \
27         appledri.c \
28         applewm-impl.c \
29         dri-surface.c \
30         x-list.c \
31         x-hash.c \
32         x-hook.c \
33         X11Application.m \
34         X11Controller.m
35
36 OBJS =  darwin.o \
37         darwin-input.o \
38         darwin-keyboard.o \
39         darwin-new-keymap.o \
40         darwin-old-keymap.o \
41         keysym2ucs.o \
42         quartz.o \
43         quartz-audio.o \
44         quartz-cursor.o \
45         quartz-server.o \
46         rootless-common.o \
47         rootless-gc.o \
48         rootless-picture.o \
49         rootless-screen.o \
50         rootless-val-tree.o \
51         rootless-window.o \
52         pseudoramiX.o \
53         appledri.o \
54         applewm-impl.o \
55         dri-surface.o \
56         x-list.o \
57         x-hash.o \
58         x-hook.o \
59         X11Application.o \
60         X11Controller.o 
61
62 AS := /System/Library/Frameworks/ApplicationServices.framework
63
64 INCLUDES = -I. -I$(SERVERSRC)/mi -I$(SERVERSRC)/fb -I$(EXTINCSRC) \
65            -I$(SERVERSRC)/render -I$(SERVERSRC)/include -I$(XINCLUDESRC) \
66            -I$(SERVERSRC)/os -I$(SERVERSRC)/Xext -I$(SERVERSRC)/GL/apple \
67            -I$(INCLUDESRC) -I$(FONTINCSRC) -F$(AS)/Frameworks \
68            $(XPLUGIN_INCLUDE)
69
70 OSNAME = OSName
71 OSVENDOR = OSVendor
72 OSNAMEDEF = -DOSNAME='" $(OSNAME)"' -DOSVENDOR='" $(OSVENDOR)"'
73
74 #if defined(XFree86CustomVersion)
75 CUSTOMVERSION = XFree86CustomVersion
76 CUSTOMVERDEF = -DXF86_CUSTOM_VERSION='$(CUSTOMVERSION)'
77 #endif
78
79 #if defined(BuilderString)
80 BUILDERSTRING = BuilderString
81 BUILDERMSG = -DBUILDERSTRING='$(BUILDERSTRING)'
82 #endif
83
84 SUBDIRS = utils
85
86 DEFINES = $(CUSTOMVERDEF) -DXBINDIR=$(BINDIR) -DXINITDIR=$(XINITDIR) \
87           $(QUARTZDEFINES) $(DEBUGDEFINES)
88
89 #if XFree86Devel
90 DEBUGDEFINES = -DROOTLESSDEBUG
91 #endif
92
93 EXTRAMANDEFS = -D__logdir__=$(LOGDIRECTORY)
94
95 SpecialCObjectRule(darwin,$(ICONFIGFILES),$(OSNAMEDEF) $(BUILDERMSG) $(CUSTOMVERDEF))
96
97 NormalLibraryObjectRule()
98 NormalLibraryTarget(XQuartz,$(OBJS))
99
100 InstallManPage(Xquartz,$(MANDIR))
101 InstallManPage(XFree86,$(MANDIR))
102
103 DependTarget()
104
105 MakeSubdirs($(SUBDIRS))
106 DependSubdirs($(SUBDIRS))
107
108 #ifndef DarwinArchEnv
109 #define DarwinArchEnv
110 #endif
111
112 PBXBUILD = DarwinArchEnv pbxbuild
113 PBXBUILDSTYLE = Development
114 PBXBUILDDIR= ./build
115
116 DITTO = ditto
117
118 #if NothingOutsideProjectRoot
119 APPINSTALLDIR = $(BINDIR)/../Applications
120 #else
121 APPINSTALLDIR = /Applications/Utilities
122 #endif
123
124 all::
125         $(PBXBUILD) -buildstyle $(PBXBUILDSTYLE) build
126
127 install::
128         $(PBXBUILD) -buildstyle $(PBXBUILDSTYLE) install
129         mkdir -p $(DESTDIR)$(APPINSTALLDIR)
130         $(DITTO) $(PBXBUILDDIR)/UninstalledProducts/X11.app $(DESTDIR)$(APPINSTALLDIR)/X11.app
131
132 clean::
133         $(PBXBUILD) 'clean'
134
135 %.o : %.m
136         $(CC) $(CFLAGS) -c -o $@ $<