1
0
mirror of git://projects.qi-hardware.com/setfont2.git synced 2024-12-05 04:31:52 +02:00

Makefile is now generic

This commit is contained in:
Neil Stockbridge 2010-07-21 22:08:36 +12:00
parent 5c45736740
commit 56fcd90230

View File

@ -1,14 +1,9 @@
PROJECT = setfont2 PROJECT = setfont2
STAGING_DIR = $(HOME)/nanonote/openwrt-xburst/staging_dir STRIP = strip
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
CFLAGS = -Wall -Os CFLAGS = -Wall -Os
INCLUDES = -I. -I$(ROOT_DIR)/usr/include INCLUDES = -I. -I/usr/include
LIBS = -L$(ROOT_DIR)/usr/lib LIBS = -L/usr/lib
PARTS = setfont2.o PARTS = setfont2.o
.c.o: .c.o:
@ -20,7 +15,7 @@ PARTS = setfont2.o
all: $(PROJECT) all: $(PROJECT)
$(PROJECT): $(PARTS) $(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) $(STRIP) $(PROJECT)
clean: clean: