diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-01-03 13:58:15 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-01-03 13:58:15 +0100 |
commit | 4aca87515a5083ae0e31ce3177189fd43b6d05ac (patch) | |
tree | 7b1d9a31393ca090757dc6f0d3859b4fcd93f271 /release/src/router/httpd/Makefile | |
parent | 008d0be72b2f160382c6e880765e96b64a050c65 (diff) | |
download | tomato-4aca87515a5083ae0e31ce3177189fd43b6d05ac.tar.gz tomato-4aca87515a5083ae0e31ce3177189fd43b6d05ac.tar.bz2 |
patch to Vanilla Tomato 1.28
Diffstat (limited to 'release/src/router/httpd/Makefile')
-rw-r--r-- | release/src/router/httpd/Makefile | 90 |
1 files changed, 28 insertions, 62 deletions
diff --git a/release/src/router/httpd/Makefile b/release/src/router/httpd/Makefile index 9e77c950..24e479f1 100644 --- a/release/src/router/httpd/Makefile +++ b/release/src/router/httpd/Makefile @@ -1,76 +1,42 @@ -# -# milli_httpd Makefile -# -# Copyright 2005, Broadcom Corporation -# All Rights Reserved. -# -# THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY -# KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM -# SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS -# FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE. -# -# $Id: Makefile,v 1.40.18.1.2.2 2006/02/07 10:56:31 honor Exp $ -# -include $(TOP)/.config +include ../common.mak -ifneq ($(wildcard $(SRCBASE)/cy_conf.mak),) - include $(SRCBASE)/cy_conf.mak -endif +CFLAGS = -O2 -Wall +CFLAGS += -I$(SRCBASE) -I$(SRCBASE)/include -I. -I$(TOP)/shared -CFLAGS += -I. -I$(TOP)/shared -I$(SRCBASE)/include -Wall -I$(SRCBASE)/ +OBJS = httpd.o cgi.o tomato.o version.o +OBJS += misc.o dhcp.o upgrade.o traceping.o parser.o upnp.o ctnf.o +OBJS += nvram.o log.o webio.o wl.o devlist.o ddns.o config.o bwm.o +OBJS += blackhole.o -#CFLAGS += -g -DDEBUG -CFLAGS += -s -O2 -LDFLAGS += -L$(TOP)/nvram -L$(INSTALLDIR)/nvram/usr/lib -lnvram -L$(TOP)/shared -L$(INSTALLDIR)/shared/usr/lib -lshared +LIBS = -L../nvram -lnvram -L../shared -lshared +LIBS += -L../mssl -lmssl +all: httpd -CFLAGS += -I$(TOP)/openssl/include -I$(TOP)/openssl/include/openssl -LDFLAGS += -L$(TOP)/openssl -L../openssl -lcrypto -lssl -OBJS += $(SRCBASE)/../tools/src/code_header.o backup_restore.o -OBJS += setup_wizard.o -OBJS += qos.o +httpd: $(OBJS) + @echo " [httpd] CC $@" + @$(CC) -o $@ $(OBJS) $(LIBS) + $(SIZECHECK) + $(CPTMP) -vpath %.c $(TOP)/shared -vpath %.o $(SRCBASE)/router/httpd/prebuilt - -all:clean httpd - -clean: - rm -f *.o *~ httpd - rm -f $(SRCBASE)/../tools/src/code_header.o - install: - install -D httpd $(INSTALLDIR)/usr/sbin/httpd - $(STRIP) $(INSTALLDIR)/usr/sbin/httpd - install -d $(INSTALLDIR)/etc - #install *.pem $(INSTALLDIR)/etc - install openssl.cnf $(INSTALLDIR)/etc - install -m 755 gencert.sh $(INSTALLDIR)/usr/sbin - -cert: - # create the key and certificate request - openssl req -new -out cert.csr -config openssl.cnf -keyout privkey.pem -days 3650 -newkey rsa:512 - # remove the passphrase from the key: - openssl rsa -in privkey.pem -out key.pem - # convert the certificate request into a signed certificate - openssl x509 -in cert.csr -out cert.pem -req -signkey key.pem - rm -f cert.csr privkey.pem - # Show human-readable format - openssl x509 -in cert.pem -text -noout + @echo " [httpd] Installing to $(INSTALLDIR)" + @install -m 0500 -D httpd $(INSTALLDIR)/usr/sbin/httpd + @$(STRIP) $(INSTALLDIR)/usr/sbin/httpd -#qos_1.o:qos.o interface.o +clean: + rm -f httpd *.o .*.depend -httpd: cgi.o ej.o httpd.o broadcom.o \ - index.o status.o dhcp.o log.o upgrade.o filters.o forward.o dynamic_route.o static_route.o wireless.o ddns.o \ - find_pattern.o lib.o diag.o sysinfo.o wepkey.o md5c.o wl_test.o getservice.o $(OBJS) - $(CC) -o $@ $^ $(LDFLAGS) +size: httpd + mipsel-uclibc-nm --print-size --size-sort httpd -build_date.o: build_date.c -build_date: - echo "#define BUILD_DATE \"`date \"+%b %d %Y\"`\"" > build_date.c - echo "#define BUILD_TIME \"`date \"+%H:%M:%S\"`\"" >> build_date.c +%.o: %.c .%.depend + @echo " [httpd] CC $@" + @$(CC) $(CFLAGS) -o $@ -c $< +.%.depend: %.c + @$(CC) $(CFLAGS) -M $< > $@ -*.o: $(CY_DEPS) +-include $(OBJS:%.o=.%.depend) |