From 56fcd902301e573e2c5d5b49d079505765cfa811 Mon Sep 17 00:00:00 2001 From: Neil Stockbridge Date: Wed, 21 Jul 2010 22:08:36 +1200 Subject: [PATCH] Makefile is now generic --- Makefile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 0daf880..0e949a0 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,9 @@ PROJECT = setfont2 -STAGING_DIR = $(HOME)/nanonote/openwrt-xburst/staging_dir -ROOT_DIR = $(STAGING_DIR)/target-mipsel_uClibc-0.9.30.1 -#ROOT_DIR = "" -CC = $(STAGING_DIR)/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/bin/mipsel-openwrt-linux-uclibc-gcc -STRIP = $(STAGING_DIR)/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/mipsel-openwrt-linux-uclibc/bin/strip -#STRIP = strip +STRIP = strip CFLAGS = -Wall -Os -INCLUDES = -I. -I$(ROOT_DIR)/usr/include -LIBS = -L$(ROOT_DIR)/usr/lib +INCLUDES = -I. -I/usr/include +LIBS = -L/usr/lib PARTS = setfont2.o .c.o: @@ -20,7 +15,7 @@ PARTS = setfont2.o all: $(PROJECT) $(PROJECT): $(PARTS) - $(CC) -Wl,-rpath-link=$(ROOT_DIR)/usr/lib $(DEFINES) $(LIBS) -o $(PROJECT) $(PARTS) + $(CC) -Wl,-rpath-link=/usr/lib $(DEFINES) $(LIBS) -o $(PROJECT) $(PARTS) $(STRIP) $(PROJECT) clean: