#
# milli_httpd Makefile
#
# Copyright (C) 2001 Broadcom Corporation
#
# $Id: Makefile,v 1.7 2002/06/07 01:15:46 mhuang Exp $
#

CFLAGS	+= -I. -I$(TOP)/shared -I$(SRCBASE)/include -I$(SRCBASE)/router/rc -Wall
#CFLAGS	+= -g -DDEBUG
CFLAGS	+= -s -O2
LDFLAGS	+= -L$(TOP)/nvram -L$(TOP)/shared 

vpath %.c $(TOP)/shared

all: httpd

clean:
	rm -f *.o *~ httpd

install: all
	install -d $(INSTALLDIR)/usr/sbin
	install httpd $(INSTALLDIR)/usr/sbin
	$(STRIP) $(INSTALLDIR)/usr/sbin/httpd

httpd: httpd.o ej.o cgi.o broadcom.o shutils.o ap_passphrase.o ap_cgi.o ap_shared.o
	$(CC) -o $@ $^ $(LDFLAGS) -lnvram -lshared
