2016-02-27 05:33:57 +01:00
|
|
|
include ../../Macros.mak
|
|
|
|
include ../../Config.mak
|
|
|
|
|
|
|
|
|
|
|
|
OBJS:=$(patsubst %.o,$(ARCH)/%.o,$(OBJS))
|
|
|
|
|
|
|
|
|
2016-04-02 17:07:35 +02:00
|
|
|
CFLAGS = -Wall -g -O0 -D_REENTRANT -DWITH_IPV6 $(COMPDEFS) -DWITH_RMAC_SUPPORT -I ../../ -I../ -I../../include
|
2016-02-27 05:33:57 +01:00
|
|
|
|
|
|
|
LIBDIR=../../lib/$(ARCH)
|
|
|
|
|
|
|
|
SRCS = $(OBJS:.o=.c)
|
|
|
|
|
|
|
|
$(ARCH)/%.o:%.c
|
|
|
|
@mkdir -p $(ARCH)
|
|
|
|
@echo " CC "$<
|
|
|
|
@$(CC) -c $(CFLAGS) $< -o $@
|
|
|
|
|
|
|
|
|
|
|
|
$(LIBDIR)/$(NAME) : $(OBJS) $(MODOBJS)
|
|
|
|
@mkdir -p $(LIBDIR)
|
|
|
|
@echo " AR $(LIBDIR)/$(NAME)"
|
|
|
|
@$(AR) rcs $(LIBDIR)/$(NAME) $(OBJS) $(MODOBJS)
|
|
|
|
|
|
|
|
|
|
|
|
all: $(LIBDIR)/$(NAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(ARCH)
|
|
|
|
rm -f $(LIBDIR)/$(NAME)
|
|
|
|
|