32 |
32 |
33 # if your embedded C code requires any system includes, |
33 # if your embedded C code requires any system includes, |
34 # add the path(es) here:, |
34 # add the path(es) here:, |
35 # ********** OPTIONAL: MODIFY the next lines *** |
35 # ********** OPTIONAL: MODIFY the next lines *** |
36 # LOCALINCLUDES=-Ifoo -Ibar |
36 # LOCALINCLUDES=-Ifoo -Ibar |
37 LOCALINCLUDES=-Iexpat-2.0.1/lib -I$(INCLUDE_TOP)/stx/libbasic -I$(INCLUDE_TOP)/stx/libbasic2 -I$(INCLUDE_TOP)/stx/libtool -I$(INCLUDE_TOP)/stx/libview -I$(INCLUDE_TOP)/stx/libview2 -I$(INCLUDE_TOP)/stx/libwidg2 |
37 LOCALINCLUDES=-I$(LIBEXPAT_DIR)/lib -I$(INCLUDE_TOP)/stx/libbasic -I$(INCLUDE_TOP)/stx/libbasic2 -I$(INCLUDE_TOP)/stx/libtool -I$(INCLUDE_TOP)/stx/libview -I$(INCLUDE_TOP)/stx/libview2 -I$(INCLUDE_TOP)/stx/libwidg2 |
38 |
38 |
39 |
39 |
40 # if you need any additional defines for embedded C code, |
40 # if you need any additional defines for embedded C code, |
41 # add them here:, |
41 # add them here:, |
42 # ********** OPTIONAL: MODIFY the next lines *** |
42 # ********** OPTIONAL: MODIFY the next lines *** |
47 STCLOCALOPT='-package=$(PACKAGE)' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -headerDir=. -varPrefix=$(LIBNAME) |
47 STCLOCALOPT='-package=$(PACKAGE)' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -headerDir=. -varPrefix=$(LIBNAME) |
48 |
48 |
49 |
49 |
50 # ********** OPTIONAL: MODIFY the next line *** |
50 # ********** OPTIONAL: MODIFY the next line *** |
51 # additional C-libraries that should be pre-linked with the class-objects |
51 # additional C-libraries that should be pre-linked with the class-objects |
52 LD_OBJ_LIBS=expat-2.0.1/build/lib/libexpat.a |
52 LD_OBJ_LIBS=$(LIBEXPAT) |
53 LOCAL_SHARED_LIBS= |
53 LOCAL_SHARED_LIBS= |
54 |
54 |
55 |
55 |
56 # ********** OPTIONAL: MODIFY the next line *** |
56 # ********** OPTIONAL: MODIFY the next line *** |
57 # additional C targets or libraries should be added below |
57 # additional C targets or libraries should be added below |
58 LOCAL_EXTRA_TARGETS= |
58 LOCAL_EXTRA_TARGETS= |
59 |
59 |
60 OBJS= $(COMMON_OBJS) $(UNIX_OBJS) |
60 OBJS= $(COMMON_OBJS) $(UNIX_OBJS) |
61 |
61 |
62 |
62 |
|
63 LIBEXPAT_DIR=expat-2.0.1 |
|
64 LIBEXPAT=expat-2.0.1/lib/libexpat.a |
|
65 |
63 |
66 |
64 all:: preMake classLibRule postMake |
67 all:: preMake classLibRule postMake |
65 |
68 |
66 pre_objs:: expat-2.0.1/build/lib/libexpat.a |
69 pre_objs:: $(LIBEXPAT) |
67 |
70 |
68 |
71 |
69 expat-2.0.1/build/lib/libexpat.a: |
72 $(LIBEXPAT): $(LIBEXPAT_DIR)/config.status |
70 mkdir expat-2.0.1/build && cd expat-2.0.1/build && CC=$(CC) CFLAGS="$(CCCONFOPT) -fPIC" ../configure --prefix=$$PWD |
73 $(MAKE) -C expat-2.0.1 |
71 $(MAKE) -C expat-2.0.1/build |
74 $(MAKE) -C expat-2.0.1 install |
72 $(MAKE) -C expat-2.0.1/build install |
75 |
|
76 $(LIBEXPAT_DIR)/config.status: |
|
77 cd $(LIBEXPAT_DIR) && CC=$(CC) CFLAGS="$(CCCONFOPT) -fPIC" ./configure --prefix=$$PWD |
|
78 |
|
79 clobber:: |
|
80 -$(MAKE) -C $(LIBEXPAT_DIR) distclean |
|
81 |
|
82 clean:: |
|
83 -$(MAKE) -C $(LIBEXPAT_DIR) clean |
|
84 |
|
85 |
73 |
86 |
74 |
87 |
75 |
88 |
76 # Update SVN revision in package definition class |
89 # Update SVN revision in package definition class |
77 ifneq (,$(findstring .svn,$(wildcard .svn))) |
90 ifneq (,$(findstring .svn,$(wildcard .svn))) |