Mercurial > MadButterfly
diff examples/tank/Makefile @ 173:c490796f6c82
Remove src/mb (soft-link).
It is too dirty, please keep it clean.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 31 Oct 2008 09:14:16 +0800 |
parents | 73c4e93d331c |
children |
line wrap: on
line diff
--- a/examples/tank/Makefile Fri Oct 31 01:01:43 2008 +0800 +++ b/examples/tank/Makefile Fri Oct 31 09:14:16 2008 +0800 @@ -8,13 +8,14 @@ MB_C_HEADER= mb_c_header.m4 MB_C_SOURCE= mb_c_source.m4 M4 = m4 -M4MACRODIR?= /usr/local/share/mb +PREFIX?= /usr/local +M4MACRODIR?= $(PREFIX)/share/mb M4FLAGS ?= -I $(M4MACRODIR) LDFLAGS += -INCDIR?= /usr/local/include -LIBDIR?= /usr/local/lib -LIBS += -lmbfly -lX11 -L$(LIBDIR) `pkg-config --libs cairo` -L../../src -CFLAGS += -I$(INCDIR) `pkg-config --cflags cairo` -I../../src +INCDIR?= $(PREFIX)/include +LIBDIR?= $(PREFIX)/lib +LIBS += -lmbfly -lX11 -L$(LIBDIR) `pkg-config --libs cairo` +CFLAGS += -I$(INCDIR) `pkg-config --cflags cairo` BIN = tank all: tank