mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-12-22 09:12:24 +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 += \
|
||||
-Wl,-rpath-link=$(STAGING_DIR)/usr/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
|
||||
SECTION:=xorg-apps
|
||||
@ -43,8 +44,12 @@ define Package/dgclock/description
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/Default, \
|
||||
A320=1 \
|
||||
( cd $(PKG_BUILD_DIR) ; \
|
||||
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
|
||||
|
||||
@ -55,7 +60,7 @@ define Package/dgclock/install
|
||||
$(1)/usr/share/applications
|
||||
|
||||
$(INSTALL_BIN) \
|
||||
$(PKG_BUILD_DIR)/bin/a320/dgclock \
|
||||
$(PKG_BUILD_DIR)/bin/dgclock \
|
||||
$(1)/usr/bin/
|
||||
|
||||
$(INSTALL_DATA) \
|
||||
|
Loading…
Reference in New Issue
Block a user