Root/tic-tac-toe/Makefile

1#
2# This is free software, licensed under the GNU General Public License v2.
3# See /LICENSE for more information.
4#
5
6include $(TOPDIR)/rules.mk
7
8PKG_NAME:=tic-tac-toe
9PKG_VERSION:=1.0
10PKG_REV:=1ef5285d7fb188cd2049936f85de98cabc911144
11PKG_RELEASE:=1
12
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14PKG_SOURCE_URL:=git://github.com/garretraziel/gomoku.git
15PKG_SOURCE_PROTO:=git
16PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17PKG_SOURCE_VERSION:=$(PKG_REV)
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/tic-tac-toe
22  MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
23  SECTION:=games
24  CATEGORY:=Games
25  TITLE:=Easy Tic-Tac-Toe game
26  DEPENDS:=+libsdl +libsdl-gfx
27  URL:=http://github.com/garretraziel/gomoku
28endef
29
30define Package/tic-tac-toe/description
31Easy Tic-Tac-Toe game, using SDL and own AI.
32endef
33
34TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/ \
35        -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
36        -L$(STAGING_DIR)/usr/lib
37
38define Package/tic-tac-toe/install
39    $(INSTALL_DIR) $(1)/usr/bin
40    $(INSTALL_BIN) $(PKG_BUILD_DIR)/gobango $(1)/usr/bin
41endef
42
43$(eval $(call BuildPackage,tic-tac-toe))
44
45# The following comments configure the Emacs editor. Just ignore them.
46# Local Variables:
47# compile-command: "make -C ~/openwrt-xburst.full_system package/tic-tac-toe/{clean,compile} -j2 V=99"
48# End:
49

Archive Download this file



interactive