mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-16 18:54:04 +02:00
get rid of the Makefile dgclock provides and therefore make it architecture independant (the mipsel-gcc name was hardcoded into the Makefile)
This commit is contained in:
parent
e061b2f44a
commit
c9c7853199
@ -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) \
|
||||||
|
Loading…
Reference in New Issue
Block a user