Make.phymod (799B)
1 # 2 # This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 3 # 4 # Copyright 2007-2019 Broadcom Inc. All rights reserved. 5 # 6 # Helper makefile for integrating the phymod library into the SDK builds. 7 # 8 # Ths following line in Make.config replaces the $PHYMOD/make/rules.mk file 9 # with this helper makefile: 10 # 11 # export PHYMOD_MAKE_RULES = $(SDK)/make/Make.phymod 12 # 13 14 # Map phymod library name to SDK library name 15 ifeq (,$(lib)) 16 lib = $(LIBNAME) 17 endif 18 19 # Duplicate phymod rule for C source compilation 20 $(BLDDIR)/%.$(OBJSUFFIX): %.c $(BLDDIR)/.tree 21 @$(ECHO) 'Compiling $(LOCALDIR)/$<' 22 $(Q)$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ 23 24 # Include SDK library rules to shopprt Linux shared library builds 25 include $(SDK)/make/Make.lib