board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / tinyhttpd / tinyhttpd.mk
blob058f6bd1868589c55993bea3498a1688fd232b41
1 ################################################################################
3 # tinyhttpd
5 ################################################################################
7 TINYHTTPD_VERSION = 0.1.0
8 TINYHTTPD_SITE = http://downloads.sourceforge.net/project/tinyhttpd/tinyhttpd%20source/tinyhttpd%20$(TINYHTTPD_VERSION)
9 TINYHTTPD_LICENSE = GPL
10 TINYHTTPD_LICENSE_FILES = README
12 define TINYHTTPD_BUILD_CMDS
13 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
14 LDFLAGS="$(TARGET_LDFLAGS)"
15 endef
17 define TINYHTTPD_INSTALL_TARGET_CMDS
18 $(INSTALL) -m 0755 -D $(@D)/httpd $(TARGET_DIR)/usr/sbin/tinyhttpd
19 mkdir -p $(TARGET_DIR)/var/www
20 endef
22 define TINYHTTPD_INSTALL_INIT_SYSV
23 $(INSTALL) -m 0755 -D package/tinyhttpd/S85tinyhttpd \
24 $(TARGET_DIR)/etc/init.d/S85tinyhttpd
25 endef
27 define TINYHTTPD_INSTALL_INIT_SYSTEMD
28 $(INSTALL) -D -m 644 package/tinyhttpd/tinyhttpd.service \
29 $(TARGET_DIR)/usr/lib/systemd/system/tinyhttpd.service
30 mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
31 ln -sf ../../../../usr/lib/systemd/system/tinyhttpd.service \
32 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/tinyhttpd.service
33 endef
35 $(eval $(generic-package))