author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 19 Sep 2012 01:38:26 +0000 | |
changeset 20 | 8caf2f257260 |
parent 11 | d354ac2af7ec |
permissions | -rw-r--r-- |
1 | 1 |
# $Header$ |
2 |
# |
|
3 |
# DO NOT EDIT |
|
4 |
# automagically generated from the projectDefinition: stx_goodies_metacello. |
|
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 |
|
11
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
37 |
LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/goodies/metacello/stx -I$(INCLUDE_TOP)/stx/goodies/metacello/base -I$(INCLUDE_TOP)/stx/goodies/metacello/core -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_goodies_metacello |
|
47 |
STCLOCALOPT='-package=$(PACKAGE)' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -headerDir=. -varPrefix=$(LIBNAME) |
|
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 |
||
66 |
pre_objs:: |
|
67 |
||
68 |
||
69 |
||
70 |
||
71 |
# Update SVN revision in stx_libbasic3.st |
|
72 |
ifneq (,$(findstring .svn,$(wildcard .svn))) |
|
73 |
.svnversion: *.st |
|
74 |
if [ -d .svn ]; then \ |
|
75 |
rev=$(shell svnversion -n); \ |
|
76 |
echo -n $$rev > .svnversion; \ |
|
77 |
else \ |
|
78 |
echo -n exported > .svnversion; \ |
|
79 |
fi |
|
80 |
||
81 |
stx_goodies_metacello.o: stx_goodies_metacello.st .svnversion |
|
82 |
@if [ -d .svn ]; then \ |
|
83 |
rev2="$(shell printf "%-16s" $$(cat .svnversion))"; \ |
|
84 |
echo " [SV] Expanding svnRevisionNo in $1.st"; \ |
|
85 |
sed -e "s/\"\$$SVN\-Revision:\".*\"\$$\"/\"\$$SVN-Revision:\"\'$$rev2\'\"\$$\"/g" $< > .stx_goodies_metacello.svn.st; \ |
|
86 |
fi |
|
87 |
$(MAKE) CC="$(CLASSLIB_CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" STC="$(STC)" STFILE=.stx_goodies_metacello.svn $(C_RULE); |
|
88 |
sed -i -e "s/\".stx_goodies_metacello.svn.st\");/\"\stx_goodies_metacello.st\");/g" .stx_goodies_metacello.svn.c |
|
89 |
$(MAKE) .stx_goodies_metacello.svn.$(O) |
|
90 |
@mv .stx_goodies_metacello.svn.$(O) stx_goodies_metacello.$(O) |
|
91 |
endif |
|
92 |
||
93 |
||
94 |
||
95 |
||
96 |
# add more install actions here |
|
97 |
install:: |
|
98 |
||
99 |
# add more install actions for aux-files (resources) here |
|
100 |
installAux:: |
|
101 |
||
102 |
# add more preMake actions here |
|
103 |
preMake:: |
|
104 |
||
105 |
# add more postMake actions here |
|
106 |
postMake:: cleanjunk |
|
107 |
||
108 |
prereq: $(REQUIRED_SUPPORT_DIRS) |
|
109 |
cd ../../libbasic && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
|
11
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
110 |
cd base && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
111 |
cd core && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
112 |
cd stx && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
1 | 113 |
cd ../../librun && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" |
114 |
||
115 |
||
116 |
||
117 |
cleanjunk:: |
|
118 |
-rm -f *.s *.s2 |
|
119 |
||
120 |
clean:: |
|
121 |
-rm -f *.o *.H |
|
122 |
||
123 |
clobber:: clean |
|
124 |
-rm -f *.so *.dll |
|
125 |
||
126 |
||
127 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
128 |
$(OUTDIR)stx_goodies_metacello.$(O) stx_goodies_metacello.$(H): stx_goodies_metacello.st $(INCLUDE_TOP)/stx/libbasic/LibraryDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) |
|
129 |
||
130 |
# ENDMAKEDEPEND --- do not remove this line |
|
131 |