blob: 261baa62f4dd9954adfb1bcb359f6308316c78b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
$NetBSD: patch-ad,v 1.1.1.1 2002/06/15 09:29:15 shell Exp $
--- client/Makefile.in.orig Mon May 22 17:47:14 2000
+++ client/Makefile.in
@@ -1,20 +1,21 @@
prefix=@prefix@
-CFLAGS = @CFLAGS@
+CFLAGS = -Wall -I. -I../include -I../server -I../client @CFLAGS@
PROG_LIB = libimmclient.a
SLIB_OBJS = TLC_TcpipImmClient.o TLC_ImmServer.o TLC_Utils.o \
TLC_MemFile.o TLC_SocketClient.o
DLIB_OBJS = TLC_LibImmClient.o TLC_Utils.o
SERVER_LIB=../server/libimm_server.so
-CFLAGS = -g -Wall -I. -I../include -I../server -I../client
# CFLAGS = -g -D__IMM_DEBUG__ -Wall -I. -I../include
+CC = $(LIBTOOL) --mode=compile $(CXX)
-all: $(PROG_LIB)
+all: $(DLIB_OBJS)
+ $(LIBTOOL) --mode=link $(CXX) -o $(PROG_LIB:.a=.la) $(DLIB_OBJS:.o=.lo) -rpath $(prefix)/lib -version-info 1:2
libimmclient.a: $(DLIB_OBJS)
ar rc $(PROG_LIB) $(DLIB_OBJS)
TLC_LibImmClient.o: TLC_LibImmClient.cpp
- gcc $(CFLAGS) -c TLC_LibImmClient.cpp -o TLC_LibImmClient.o
+ $(CC) $(CFLAGS) -c TLC_LibImmClient.cpp -o TLC_LibImmClient.o
slib: $(SLIB_OBJS)
ar rc $(PROG_LIB) $(SLIB_OBJS)
@@ -23,7 +24,7 @@
TLC_ImmServer.o: TLC_ImmServer.cpp TLC_ImmServer.hpp
gcc $(CFLAGS) -c TLC_ImmServer.cpp -o TLC_ImmServer.o
TLC_Utils.o: TLC_Utils.cpp
- gcc $(CFLAGS) -c TLC_Utils.cpp -o TLC_Utils.o
+ $(CC) $(CFLAGS) -c TLC_Utils.cpp -o TLC_Utils.o
TLC_MemFile.o: TLC_MemFile.cpp TLC_MemFile.hpp
gcc $(CFLAGS) -c TLC_MemFile.cpp -o TLC_MemFile.o
TLC_SocketClient.o: TLC_SocketClient.cpp TLC_SocketClient.hpp
@@ -32,9 +33,8 @@
test: all $(SERVER_LIB)
g++ $(CFLAGS) -D__DLL_SUPPORT__ -ldl -lpth test.cpp $(PROG_LIB) $(SERVER_LIB) -o test
-install: all
- mkdir -p $(prefix)/lib/unicon2
- cp -f $(PROG_LIB) $(prefix)/lib/unicon2
+install:
+ $(LIBTOOL) --mode=install $(BSD_INSTALL_DATA) $(PROG_LIB:.a=.la) $(prefix)/lib
clean:
rm -f *.o *.bak $(PROG_LIB) $(PROG)
|