From c9c7853199c62249fdd81da3e5780d9797295591 Mon Sep 17 00:00:00 2001 From: Mirko Vogt Date: Wed, 10 Mar 2010 14:39:01 +0100 Subject: [PATCH] get rid of the Makefile dgclock provides and therefore make it architecture independant (the mipsel-gcc name was hardcoded into the Makefile) --- dgclock/Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/dgclock/Makefile b/dgclock/Makefile index 8f868fb..da1ebe8 100644 --- a/dgclock/Makefile +++ b/dgclock/Makefile @@ -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) \