131 $(SRCDIR)/test3.c \
132 $(SRCDIR)/md5.c
133
134 TESTOBJS = $(TESTSRC:$(SRCDIR)/%.c=%.o)
135
136 TESTCLEAN = $(TESTOBJS) test.db test.tcl test1.bt test2.db testdb
137
138 #
139 # Native variant (needed by cmd/configd)
140 #
141 NATIVERELOC = libsqlite-native.o
142 NATIVEPROGS = testfixture
143 NATIVEOBJS = $(OBJS:%.o=%-native.o)
144
145 NATIVETARGETS = $(NATIVEPROGS) $(NATIVEOBJS) $(NATIVERELOC)
146
147 $(NATIVETARGETS) := CC = $(NATIVECC)
148 $(NATIVETARGETS) := LD = $(NATIVELD)
149 $(NATIVETARGETS) := CFLAGS = $(NATIVE_CFLAGS)
150 $(NATIVETARGETS) := CPPFLAGS = $(MYCPPFLAGS)
151 $(NATIVETARGETS) := LDFLAGS =
152 $(NATIVETARGETS) := LDLIBS = -lc
153
154 $(OBJS) := CFLAGS += $(CTF_FLAGS)
155 $(OBJS) := CTFCONVERT_POST = $(CTFCONVERT_O)
156
157 TCLBASE = /usr/sfw
158 TCLVERS = tcl8.3
159
160 testfixture := MYCPPFLAGS += -I$(TCLBASE)/include -DTCLSH -DSQLITE_TEST=1
161 #
162 # work around compiler issues
163 #
164 testfixture := CFLAGS += \
165 -erroff=E_ARRAY_OF_INCOMPLETE \
166 -erroff=E_ARG_INCOMPATIBLE_WITH_ARG
167
168 testfixture := LDLIBS += -R$(TCLBASE)/lib -L$(TCLBASE)/lib -l$(TCLVERS) -lm -ldl
169
170 CLEANFILES += \
171 $(NATIVETARGETS) \
|
131 $(SRCDIR)/test3.c \
132 $(SRCDIR)/md5.c
133
134 TESTOBJS = $(TESTSRC:$(SRCDIR)/%.c=%.o)
135
136 TESTCLEAN = $(TESTOBJS) test.db test.tcl test1.bt test2.db testdb
137
138 #
139 # Native variant (needed by cmd/configd)
140 #
141 NATIVERELOC = libsqlite-native.o
142 NATIVEPROGS = testfixture
143 NATIVEOBJS = $(OBJS:%.o=%-native.o)
144
145 NATIVETARGETS = $(NATIVEPROGS) $(NATIVEOBJS) $(NATIVERELOC)
146
147 $(NATIVETARGETS) := CC = $(NATIVECC)
148 $(NATIVETARGETS) := LD = $(NATIVELD)
149 $(NATIVETARGETS) := CFLAGS = $(NATIVE_CFLAGS)
150 $(NATIVETARGETS) := CPPFLAGS = $(MYCPPFLAGS)
151 $(NATIVETARGETS) := LDFLAGS = -B direct
152 $(NATIVETARGETS) := NATIVE_LIBS = libc.so
153 $(NATIVETARGETS) := LDLIBS = -lc
154
155 $(OBJS) := CFLAGS += $(CTF_FLAGS)
156 $(OBJS) := CTFCONVERT_POST = $(CTFCONVERT_O)
157
158 TCLBASE = /usr/sfw
159 TCLVERS = tcl8.3
160
161 testfixture := MYCPPFLAGS += -I$(TCLBASE)/include -DTCLSH -DSQLITE_TEST=1
162 #
163 # work around compiler issues
164 #
165 testfixture := CFLAGS += \
166 -erroff=E_ARRAY_OF_INCOMPLETE \
167 -erroff=E_ARG_INCOMPATIBLE_WITH_ARG
168
169 testfixture := LDLIBS += -R$(TCLBASE)/lib -L$(TCLBASE)/lib -l$(TCLVERS) -lm -ldl
170
171 CLEANFILES += \
172 $(NATIVETARGETS) \
|