summaryrefslogtreecommitdiff
path: root/package/tinyhttpd/tinyhttpd.mk
blob: 6bc37d46e3d753b5e38a52d4a3f4cca8be00cb8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#############################################################
#
# tinyhttpd
#
#############################################################
TINYHTTPD_VERSION = 0.1.0
TINYHTTPD_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/tinyhttpd/

define TINYHTTPD_BUILD_CMDS
	$(MAKE) -C $(@D) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
		LDFLAGS="$(TARGET_LDFLAGS)"
endef

define TINYHTTPD_INSTALL_TARGET_CMDS
	$(INSTALL) -m 0755 -D $(@D)/httpd $(TARGET_DIR)/usr/sbin/httpd
	$(INSTALL) -m 0755 -D package/tinyhttpd/S85tinyhttpd \
		$(TARGET_DIR)/etc/init.d/S85tinyhttpd
	mkdir -p $(TARGET_DIR)/var/www
endef

define TINYHTTPD_CLEAN_CMDS
	rm -f $(TARGET_DIR)/usr/sbin/httpd
	rm -f $(TARGET_DIR)/etc/init.d/S85tinyhttpd
endef

$(eval $(call GENTARGETS))