Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 421007
Collapse All | Expand All

(-)a/src/Makefile (-7 / +5 lines)
Lines 1-13 Link Here
1
LUA     = lua-5.1.4
1
CC ?= gcc
2
#LUA     = lua-5.2.0
2
CXX ?= g++
3
CFLAGS  = -fno-exceptions -fno-rtti -O2 -I$(LUA) -L$(LUA)
3
4
SRC     = main.cpp soap.cpp mem.cpp mcast.cpp luaxlib.cpp luaxcore.cpp luajson.cpp luajson_parser.cpp
4
SRC     = main.cpp soap.cpp mem.cpp mcast.cpp luaxlib.cpp luaxcore.cpp luajson.cpp luajson_parser.cpp
5
5
6
x86:
6
x86:
7
	make -C $(LUA) CC=gcc a
7
	$(CC) $(CFLAGS) -c -o md5.o md5c.c
8
	gcc -O2 -c -o md5.o md5c.c
8
	$(CXX) $(CXXFLAGS) $(LDFLAGS) -fno-exceptions -fno-rtti -DWITH_LIBUUID -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -o xupnpd $(SRC) md5.o -llua -ldl -lm -luuid
9
	gcc $(CFLAGS) -DWITH_LIBUUID -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -o xupnpd $(SRC) md5.o -llua -ldl -lm -luuid
10
	strip xupnpd
11
9
12
x86_bsd:
10
x86_bsd:
13
	make -C $(LUA) CC=gcc a
11
	make -C $(LUA) CC=gcc a

Return to bug 421007