packages/net/cbtt/patches/100-compile.patch
olli c062050e8f cbtt:
* Cleanup Makefile (still not perfect but a start)
 * Update 20060211 > 20060727
 * Refresh patch
 * cbtt needs uClibc++

git-svn-id: svn://svn.openwrt.org/openwrt/packages@8510 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-27 21:45:30 +00:00

36 lines
1.0 KiB
Diff

Index: cbtt80-20060727-src/Makefile
===================================================================
--- cbtt80-20060727-src.orig/Makefile 2007-08-27 23:41:22.000000000 +0200
+++ cbtt80-20060727-src/Makefile 2007-08-27 23:41:22.000000000 +0200
@@ -1,6 +1,5 @@
SHELL = /bin/sh
SYSTEM = $(shell uname)
-C++ = g++
DFLAGS =
OFLAGS = -O2 -w
LFLAGS = -L. -lz
@@ -42,19 +41,19 @@
all: $(OBJS) $(OBJS_BNBT) $(OBJS_BNBTMYSQL) $(PROGS)
./bnbt: $(OBJS) $(OBJS_BNBT)
- $(C++) -o ./bnbt $(OBJS) $(OBJS_BNBT) $(LFLAGS)
+ $(CXX) -o ./bnbt $(OBJS) $(OBJS_BNBT) $(LFLAGS)
./bnbtmysql: $(OBJS) $(OBJS_BNBTMYSQL)
- $(C++) -o ./bnbtmysql $(OBJS) $(OBJS_BNBTMYSQL) $(LFLAGS) -L/usr/lib/mysql -lmysqlclient
+ $(CXX) -o ./bnbtmysql $(OBJS) $(OBJS_BNBTMYSQL) $(LFLAGS)
clean:
rm -f $(OBJS) $(OBJS_BNBT) $(OBJS_BNBTMYSQL) $(PROGS)
%.o: %.cpp
- $(C++) -o $@ $(CFLAGS) -c $<
+ $(CXX) -o $@ $(CFLAGS) -c $<
%.mysql.o: %.cpp
- $(C++) -o $@ $(CFLAGS) -DBNBT_MYSQL -c $<
+ $(CXX) -o $@ $(CFLAGS) -DBNBT_MYSQL -c $<
./bnbt: $(OBJS) $(OBJS_BNBT)