Doxygen updates
[keystone-rtos/netapi.git] / ti / runtime / netapi / build / Makefile
1 # INCLUDE Directories
2 QMSS_INC_DIR = $(PDK_INSTALL_PATH)/ti/drv/qmss
3 CPPI_INC_DIR = $(PDK_INSTALL_PATH)/ti/drv/cppi
5 INCDIR := $(PDK_INSTALL_PATH);  $(QMSS_INC_DIR); $(CPPI_INC_DIR)
7 # Output for prebuilt generated libraries
8 export ARMV7LIBDIR ?= ../lib
9 export ARMV7OBJDIR ?= ../obj
11 # Set NETAPI INSTALL PATH to Transport SDK for default
12 export NETAPI_INSTALL_PATH ?= $(TRANS_SDK_INSTALL_PATH)
14 NETAPI_DOCS_DIR := $(NETAPI_INSTALL_PATH)/ti/runtime/netapi/docs
15  
16 #NETAPI dirs
17 OBJEXT = o
18 INTERNALLINKDEFS =
19 NETAPI_INC_DIR = $(NETAPI_INSTALL_PATH)/ti/runtime/netapi
20 SRCDIR = $(NETAPI_INC_DIR)/src
22 VPATH=$(SRCDIR)
25 #Cross tools
26 CC = $(CROSS_TOOL_INSTALL_PATH)/$(CROSS_TOOL_PRFX)gcc -c
27 AR = $(CROSS_TOOL_INSTALL_PATH)/$(CROSS_TOOL_PRFX)ar -r
30 #List the COMMONSRC Files
31 COMMONSRCC = \
32     netapi.c \
33     netapi_sec.c \
34     netapi_init.c \
35     netapi_sched.c \
36     netapi_timer.c \
37     netapi_vm.c \
38     netcp_cfg.c \
39     osal.c \
40     pktio.c \
41     tim64.c\
42     timlist.c
44 CFLAGS= $(DEBUG_FLAG) -I$(NETAPI_INC_DIR) -I.  -I $(SRCDIR) -I$(PDK_INSTALL_PATH) -I$(NWAL_INSTALL_PATH) -I$(PKTLIB_INSTALL_PATH) -I$(TRANS_SDK_INSTALL_PATH) -I$(QMSS_INC_DIR) -I$(CPPI_INC_DIR) -I$(SA_INSTALL_PATH) -D__ARMv7 -D_VIRTUAL_ADDR_SUPPORT -D__LINUX_USER_SPACE -D_LITTLE_ENDIAN=1 -DMAKEFILE_BUILD -pthread -D _GNU_SOURCE
45 INCS = -I$(strip $(subst ;, -I,$(subst $(space),\$(space),$(INCDIR))))
46 all: lib
48 lib: $(ARMV7LIBDIR)/libnetapi.a
51 # Make Rule for the COMMONSRC Files
52 COMMONSRCCOBJS = $(patsubst %.c, $(ARMV7OBJDIR)/netapi/lib/%.$(OBJEXT), $(COMMONSRCC))
54 $(COMMONSRCCOBJS): $(ARMV7OBJDIR)/netapi/lib/%.$(OBJEXT): %.c
55         -@echo compiling $< ...
56         @mkdir -p $(ARMV7OBJDIR)/netapi/lib/
57         $(CC) $(CFLAGS) $(INCS)  $< -o $@
59 $(ARMV7LIBDIR)/libnetapi.a: $(COMMONSRCCOBJS)
60         @mkdir -p $(ARMV7LIBDIR)
61         @echo archiving $? into $@ ...
62         @$(AR) $@ $?
64 clean:
65         rm -f $(ARMV7OBJDIR)/netapi/lib/*.o
66         rm -f $(ARMV7LIBDIR)/libnetapi.a
68 doxygen:
69         doxygen netapi_doxygen.cfg
71 doxygen_clean:
72         rm -rf $(NETAPI_DOCS_DIR)/html
73         rm -rf $(NETAPI_DOCS_DIR)/latex