Updates for doxygen
[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 dirs
15 OBJEXT = o
16 INTERNALLINKDEFS =
17 NETAPI_INC_DIR = $(NETAPI_INSTALL_PATH)/ti/runtime/netapi
18 SRCDIR = $(NETAPI_INC_DIR)/src
20 VPATH=$(SRCDIR)
23 #Cross tools
24 CC = $(CROSS_TOOL_INSTALL_PATH)/$(CROSS_TOOL_PRFX)gcc -c
25 AR = $(CROSS_TOOL_INSTALL_PATH)/$(CROSS_TOOL_PRFX)ar -r
28 #List the COMMONSRC Files
29 COMMONSRCC = \
30     netapi.c \
31     netapi_sec.c \
32     netapi_init.c \
33     netapi_sched.c \
34     netapi_timer.c \
35     netapi_vm.c \
36     netcp_cfg.c \
37     osal.c \
38     pktio.c \
39     tim64.c\
40     timlist.c
42 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
43 INCS = -I$(strip $(subst ;, -I,$(subst $(space),\$(space),$(INCDIR))))
44 all: lib
46 lib: $(ARMV7LIBDIR)/libnetapi.a
49 # Make Rule for the COMMONSRC Files
50 COMMONSRCCOBJS = $(patsubst %.c, $(ARMV7OBJDIR)/netapi/lib/%.$(OBJEXT), $(COMMONSRCC))
52 $(COMMONSRCCOBJS): $(ARMV7OBJDIR)/netapi/lib/%.$(OBJEXT): %.c
53         -@echo compiling $< ...
54         @mkdir -p $(ARMV7OBJDIR)/netapi/lib/
55         $(CC) $(CFLAGS) $(INCS)  $< -o $@
57 $(ARMV7LIBDIR)/libnetapi.a: $(COMMONSRCCOBJS)
58         @mkdir -p $(ARMV7LIBDIR)
59         @echo archiving $? into $@ ...
60         @$(AR) $@ $?
62 clean:
63         rm -f $(ARMV7OBJDIR)/netapi/lib/*.o
64         rm -f $(ARMV7LIBDIR)/libnetapi.a
66 doxygen:
67         doxygen netapi_doxygen.cfg
69 doxygen_clean:
70         rm -rf $(NETAPI_DOCS_DIR)/html
71         rm -rf $(NETAPI_DOCS_DIR)/latex