Reduce differences with root_skels in contrib.
[dragonfly.git] / contrib / bsdinstaller-1.1.6 / ports / net / lua50-socket / files / patch-Makefile
1 --- makefile.Linux.orig 2005-01-15 14:52:38.000000000 -0800
2 +++ makefile.Linux      2005-04-08 22:07:50.000000000 -0700
3 @@ -3,7 +3,7 @@
4  
5  COMPAT=compat-5.1r2
6  
7 -LUAC=luac
8 +LUAC=lua50c
9  BIN2C=bin2c
10  CC=gcc
11  OPT=-O2 $(INC) 
12 @@ -28,7 +28,9 @@
13         mime.o \
14         $(COMPAT)/compat-5.1.o 
15  
16 -CFLAGS=-I../../include -I$(COMPAT) $(PROF) $(OPT) $(DBG) $(DEF) -pedantic -W -Wall 
17 +CFLAGS=-I../../include -I$(COMPAT) -I/usr/local/include/lua50 \
18 +       $(PROF) $(OPT) $(DBG) $(DEF) -pedantic -W -Wall 
19 +LDFLAGS=-L/usr/local/lib -llua50 -llualib50
20  
21  LDYN=lsocket.so
22  
23 @@ -37,10 +39,10 @@
24  all: $(LDYN) $(MDYN)
25  
26  $(LDYN): $(LOBJS)
27 -       gcc -shared -o $(LDYN) $(LOBJS)
28 +       gcc -shared -o $(LDYN) $(LOBJS) $(LDFLAGS)
29  
30  $(MDYN): $(MOBJS)
31 -       gcc -shared -o $(MDYN) $(MOBJS)
32 +       gcc -shared -o $(MDYN) $(MOBJS) $(LDFLAGS)
33  
34  auxiliar.o: auxiliar.c auxiliar.h
35  buffer.o: buffer.c buffer.h io.h timeout.h