1#
2# BCM shared library Makefile for Linux router
3#
4# Copyright (C) 2010, Broadcom Corporation
5# All Rights Reserved.
6# 
7# This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
8# the contents of this file may not be disclosed to third parties, copied
9# or duplicated in any form, in whole or in part, without the prior
10# written permission of Broadcom Corporation.
11#
12# $Id: Makefile,v 1.2 2004/09/02 02:43:14 Exp $
13#
14
15include $(TOP)/.config
16
17
18CFLAGS	+= -I. -I$(SRCBASE)/include -I$(SRCBASE)/router/shared -Wall
19#CFLAGS	+= -g -DDEBUG
20CFLAGS	+= -s -O2
21LDFLAGS += -L.
22
23OBJS := bcmgpio.o
24
25
26all: libbcm.so
27
28install: all
29	install -d $(INSTALLDIR)/usr/lib
30	install -m 755 libbcm.so $(INSTALLDIR)/usr/lib
31	$(STRIP) $(INSTALLDIR)/usr/lib/libbcm.so
32
33clean:
34	rm -f *.o *.so
35
36libbcm.so: $(OBJS)
37	$(LD) -shared -o $@ $^
38