author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 03 Oct 2012 11:47:52 +0000 | |
changeset 32 | 23d2385dd44c |
parent 31 | 035449621a0c |
child 33 | 9225c5b5c2be |
permissions | -rw-r--r-- |
1 | 1 |
# $Header$ |
2 |
# |
|
3 |
# DO NOT EDIT |
|
31 | 4 |
# automagically generated from the projectDefinition: stx_libwebkit. |
1 | 5 |
# |
6 |
# Warning: once you modify this file, do not rerun |
|
7 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
8 |
# |
|
9 |
# The Makefile as generated by this Make.proto supports the following targets: |
|
10 |
# make - compile all st-files to a classLib |
|
11 |
# make clean - clean all temp files |
|
12 |
# make clobber - clean all |
|
13 |
# |
|
14 |
# This file contains definitions for Unix based platforms. |
|
15 |
# It shares common definitions with the win32-make in Make.spec. |
|
16 |
||
17 |
# |
|
18 |
# position (of this package) in directory hierarchy: |
|
19 |
# (must point to ST/X top directory, for tools and includes) |
|
20 |
TOP=.. |
|
21 |
INCLUDE_TOP=$(TOP)/.. |
|
22 |
||
23 |
# subdirectories where targets are to be made: |
|
24 |
SUBDIRS= |
|
25 |
||
26 |
||
27 |
# subdirectories where Makefiles are to be made: |
|
28 |
# (only define if different from SUBDIRS) |
|
29 |
# ALLSUBDIRS= |
|
30 |
||
31 |
REQUIRED_SUPPORT_DIRS= |
|
32 |
||
33 |
# if your embedded C code requires any system includes, |
|
34 |
# add the path(es) here:, |
|
35 |
# ********** OPTIONAL: MODIFY the next lines *** |
|
36 |
# LOCALINCLUDES=-Ifoo -Ibar |
|
13 | 37 |
LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/libview -I$(INCLUDE_TOP)/stx/libwidg -I$(INCLUDE_TOP)/stx/libview2 -I$(INCLUDE_TOP)/stx/libbasic2 -I$(INCLUDE_TOP)/stx/libbasic |
1 | 38 |
|
39 |
||
40 |
# if you need any additional defines for embedded C code, |
|
41 |
# add them here:, |
|
42 |
# ********** OPTIONAL: MODIFY the next lines *** |
|
43 |
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG |
|
44 |
LOCALDEFINES= |
|
45 |
||
46 |
LIBNAME=libstx_libwebkit |
|
29 | 47 |
STCLOCALOPT='-package=$(PACKAGE)' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -headerDir=. -varPrefix=$(LIBNAME) |
1 | 48 |
|
49 |
||
50 |
# ********** OPTIONAL: MODIFY the next line *** |
|
51 |
# additional C-libraries that should be pre-linked with the class-objects |
|
52 |
LD_OBJ_LIBS= |
|
53 |
LOCAL_SHARED_LIBS= |
|
54 |
||
55 |
||
56 |
# ********** OPTIONAL: MODIFY the next line *** |
|
57 |
# additional C targets or libraries should be added below |
|
58 |
LOCAL_EXTRA_TARGETS= |
|
59 |
||
60 |
OBJS= $(COMMON_OBJS) $(UNIX_OBJS) |
|
61 |
||
62 |
||
63 |
||
64 |
all:: preMake classLibRule postMake |
|
65 |
||
29 | 66 |
pre_objs:: WebKitRenderer.$(shell uname -m) |
23
b894e51653f4
Fixes building of webkit renderer + 64bit precompiled version added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
20
diff
changeset
|
67 |
|
13 | 68 |
|
23
b894e51653f4
Fixes building of webkit renderer + 64bit precompiled version added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
20
diff
changeset
|
69 |
WebKitRenderer.$(shell uname -m): uzbl/uzbl-core |
b894e51653f4
Fixes building of webkit renderer + 64bit precompiled version added
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
20
diff
changeset
|
70 |
cp uzbl/uzbl-core WebKitRenderer.$(shell uname -m) |
1 | 71 |
|
13 | 72 |
uzbl/uzbl-core: |
20 | 73 |
$(MAKE) -C uzbl uzbl-core |
1 | 74 |
|
29 | 75 |
clean:: |
76 |
$(MAKE) -C uzbl clean |
|
32 | 77 |
rm -f WebKitRenderer.$(shell uname -m) |
29 | 78 |
|
79 |
||
80 |
||
81 |
# Update SVN revision in stx_libbasic3.st |
|
82 |
ifneq (,$(findstring .svn,$(wildcard .svn))) |
|
83 |
.svnversion: *.st |
|
84 |
if [ -d .svn ]; then \ |
|
85 |
rev=$(shell svnversion -n); \ |
|
86 |
echo -n $$rev > .svnversion; \ |
|
87 |
else \ |
|
88 |
echo -n exported > .svnversion; \ |
|
2 | 89 |
fi |
29 | 90 |
|
91 |
stx_libwebkit.o: stx_libwebkit.st .svnversion |
|
92 |
if [ -d .svn ]; then \ |
|
93 |
rev2="$(shell printf "%-16s" $$(cat .svnversion))"; \ |
|
94 |
sed -e "s/\"\$$SVN\-Revision:\".*\"\$$\"/\"\$$SVN-Revision:\"\'$$rev2\'\"\$$\"/g" $< > .stx_libwebkit.svn.st; \ |
|
95 |
fi |
|
96 |
$(MAKE) CC="$(CLASSLIB_CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" STC="$(STC)" STFILE=.stx_libwebkit.svn $(O_RULE); |
|
97 |
mv .stx_libwebkit.svn.$(O) stx_libwebkit.$(O) |
|
98 |
endif |
|
99 |
||
100 |
||
1 | 101 |
|
102 |
||
103 |
# add more install actions here |
|
104 |
install:: |
|
105 |
||
106 |
# add more install actions for aux-files (resources) here |
|
107 |
installAux:: |
|
108 |
||
109 |
# add more preMake actions here |
|
110 |
preMake:: |
|
111 |
||
112 |
# add more postMake actions here |
|
113 |
postMake:: cleanjunk |
|
114 |
||
115 |
prereq: $(REQUIRED_SUPPORT_DIRS) |
|
116 |
cd ../libbasic && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
|
117 |
cd ../libbasic2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
|
118 |
cd ../libview && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
|
119 |
cd ../libview2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
|
2 | 120 |
cd ../libui && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
121 |
cd ../libwidg && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
|
1 | 122 |
cd ../librun && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
123 |
||
124 |
||
125 |
||
126 |
cleanjunk:: |
|
29 | 127 |
-rm -f *.s *.s2 |
1 | 128 |
|
129 |
clean:: |
|
130 |
-rm -f *.o *.H |
|
131 |
||
132 |
clobber:: clean |
|
133 |
-rm -f *.so *.dll |
|
134 |
||
135 |
||
136 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
13 | 137 |
$(OUTDIR)WebKitRenderer.$(O) WebKitRenderer.$(H): WebKitRenderer.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/PeekableStream.$(H) $(INCLUDE_TOP)/stx/libbasic/Stream.$(H) $(STCHDR) |
2 | 138 |
$(OUTDIR)WebKitView.$(O) WebKitView.$(H): WebKitView.st $(INCLUDE_TOP)/stx/libview/SimpleView.$(H) $(INCLUDE_TOP)/stx/libview/DisplaySurface.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsMedium.$(H) $(INCLUDE_TOP)/stx/libview/DeviceGraphicsContext.$(H) $(INCLUDE_TOP)/stx/libview/GraphicsContext.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
1 | 139 |
$(OUTDIR)stx_libwebkit.$(O) stx_libwebkit.$(H): stx_libwebkit.st $(INCLUDE_TOP)/stx/libbasic/LibraryDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
19 | 140 |
$(OUTDIR)extensions.$(O): extensions.st $(INCLUDE_TOP)/stx/libwidg/GenericToolbarIconLibrary.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
1 | 141 |
|
142 |
# ENDMAKEDEPEND --- do not remove this line |
|
143 |