1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-22 16:43:08 +02:00

Merge branch 'master' of git@projects.qi-hardware.com:openwrt-packages

This commit is contained in:
Xiangfu Liu 2010-03-15 00:40:21 +08:00
commit 0cdabfa5d5

View File

@ -28,7 +28,8 @@ TARGET_CFLAGS += \
TARGET_LDFLAGS += \ TARGET_LDFLAGS += \
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
-L$(STAGING_DIR)/usr/lib/libintl/lib/ \ -L$(STAGING_DIR)/usr/lib/libintl/lib/ \
-L$(STAGING_DIR)/usr/lib/libiconv/lib/ -L$(STAGING_DIR)/usr/lib/libiconv/lib/ \
-lSDL -lSDL_ttf
define Package/dgclock define Package/dgclock
SECTION:=xorg-apps SECTION:=xorg-apps
@ -43,8 +44,12 @@ define Package/dgclock/description
endef endef
define Build/Compile define Build/Compile
$(call Build/Compile/Default, \ ( cd $(PKG_BUILD_DIR) ; \
A320=1 \ mkdir bin obj ; \
$(TARGET_CC) -c $(TARGET_CFLAGS) -o obj/text.o src/text.c ; \
$(TARGET_CC) -c $(TARGET_CFLAGS) -o obj/settime.o src/settime.c ; \
$(TARGET_CC) -c $(TARGET_CFLAGS) -o obj/main.o src/main.c ; \
$(TARGET_CC) -o bin/dgclock obj/text.o obj/main.o obj/settime.o $(TARGET_LDFLAGS) ; \
) )
endef endef
@ -55,7 +60,7 @@ define Package/dgclock/install
$(1)/usr/share/applications $(1)/usr/share/applications
$(INSTALL_BIN) \ $(INSTALL_BIN) \
$(PKG_BUILD_DIR)/bin/a320/dgclock \ $(PKG_BUILD_DIR)/bin/dgclock \
$(1)/usr/bin/ $(1)/usr/bin/
$(INSTALL_DATA) \ $(INSTALL_DATA) \