MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / drivers / char / mxhwenp / test / Makefile
blob76054d684c2eaa8a06ff65bdbe024ec0402ac73d
1 SRCDIR = ..
3 LDFLAGS :=
5 CFLAGS := -O2 -DMOXA_HW_CRYPTO -DMOXA_TEST -I$(SRCDIR)/include
6 ifdef CPE
7 BINDIR := /tftpboot
8 include $(SRCDIR)/cpe.mk
9 ENGINE_CFLAGS = # NULL all previous
10 CFLAGS += -DCPE_ENGINE
11 else
12 BINDIR := $(SRCDIR)
13 include $(SRCDIR)/ixp.mk
14 CFLAGS += -DIXP_ENGINE
15 endif
17 # ----------- definition for test programs ----------------------------
18 include ssl.mk
20 CFLAGS += $(ENGINE_CFLAGS) $(SSLCFLAGS)
21 ifdef DEBUG
22 CFLAGS += -DDEBUG
23 endif
25 SRCS := test_ssl.c test_mxhw.c
26 OBJS := test_ssl.o test_mxhw.o
28 ifndef DLL
29 OBJS += $(SSLOBJS) $(SRCDIR)/mxhw_crypto_userio.o $(SRCDIR)/mxhw_crypto_wrapper.o
30 SRCS += $(SSLSRCS) $(SRCDIR)/mxhw_crypto_userio.c $(SRCDIR)/mxhw_crypto_wrapper.c
31 endif
33 all: io
35 io: $(OBJS)
36 $(CC) -o $(BINDIR)/$@ $(OBJS) $(LDFLAGS)
38 clean:
39 rm -f $(OBJS) $(BINDIR)/io *~ core