1#
2# milli_httpd Makefile
3#
4# Copyright (C) 2001 Broadcom Corporation
5#
6# $Id: Makefile,v 1.1.1.1 2008/07/21 09:17:45 james26_jang Exp $
7#
8#CFLAGS	+= -I. -I$(TOP)/shared -I$(SRCBASE)/include -Wall -I. -Wall -Dlinux $(GLOBAL_OPTIONS)
9 
10#CFLAGS	+= -g -DDEBUG
11#CFLAGS	+= -s -O2 -DNO_PARALLEL
12#LDFLAGS	+= -L$(TOP)/nvram -L$(TOP)/shared -L$(TOP)/netconf -lnvram -lshared -lnetconf
13
14#vpath %.c $(TOP)/shared
15
16include ../.config
17CFLAGS  += -I. -I$(TOP)/shared  -I$(SRCBASE)/include -Wall
18ifeq ($(RTCONFIG_BCMWL6),y)
19CFLAGS  += -I$(SRCBASE)/shared/bcmwifi/include
20endif
21CFLAGS  += -Dlinux -DNO_PARALLEL -DPRNINFO
22LDFLAGS = -L$(TOP)/shared -lshared -L$(TOP)/nvram${BCMEX} -lnvram 
23ifeq ($(RTCONFIG_BCMARM),y)
24CFLAGS += -I$(SRCBASE)/common/include
25LDFLAGS += -lgcc_s
26endif
27
28ifeq ($(RTCONFIG_QTN),y)
29LDFLAGS += -L$(TOP)/libqcsapi_client -lqcsapi_client
30endif
31
32all: infosvr
33
34clean:
35	rm -f *.o *~ infosvr
36
37install: all
38# Neo
39#	install -d $(INSTALLDIR)/usr/sbin
40#	install httpd $(INSTALLDIR)/usr/sbin
41#	$(STRIP) $(INSTALLDIR)/usr/sbin/httpd
42
43	install -d $(INSTALLDIR)/usr/sbin
44	$(STRIP) infosvr
45	install infosvr $(INSTALLDIR)/usr/sbin
46
47
48infosvr: ./infosvr.o ./common.o ./packet.o ./interface.o ./storage.o
49	$(CC) -o $@ $^ $(LDFLAGS) $(CFLAGS)
50	$(STRIP) $@
51
52