blob: f57aa3b448f27136c537c006cc66d22239840520 (
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
52
53
54
|
$NetBSD: patch-ab,v 1.2 2002/09/23 02:02:47 jlam Exp $
--- server/Makefile.in.orig Mon May 22 03:32:04 2000
+++ server/Makefile.in
@@ -1,7 +1,8 @@
prefix=@prefix@
-CFLAGS = @CFLAGS@
+CFLAGS = -Wall -I. -I../include @CFLAGS@
+LDFLAGS = @LDFLAGS@
APP_PROG = imm_server
-DLIB_PROG = libimm_server.so
+DLIB_PROG = libimm_server.la
APP_OBJS = TLS_HzInput.o TLS_ImmOp.o TLS_TcpipMain.o TLS_MemFile.o \
TLS_PthSocket.o TLS_Debug.o \
@@ -11,19 +12,18 @@ DLIB_OBJS = TLS_HzInput.o TLS_ImmOp.o TL
TLS_Debug.o TLS_LibMain.o TLS_DoubleByteConvertor.o \
TLS_AsciiConvertor.o
-LIBS = /usr/local/lib/libpth.so -ldl
+LIBS = -lpth
# CFLAGS = -g -D__IMM_DEBUG__ -Wall -I. -I/usr/local/include -I../include
-CFLAGS = -g -Wall -I. -I/usr/local/include -I../include
-CC=g++
+CC = $(LIBTOOL) --mode=compile $(CXX)
all: $(DLIB_PROG)
-libimm_server.so: $(DLIB_OBJS)
- $(CC) $(DLIB_OBJS) -shared -o $(DLIB_PROG)
+libimm_server.la: $(DLIB_OBJS)
+ $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $(DLIB_PROG) $(DLIB_OBJS:.o=.lo) -rpath $(prefix)/lib -version-info 1:2 $(LIBS)
TLS_LibMain.o : TLS_LibMain.cpp
- $(CC) $(CFLAGS) -DUNICON2_LIB=\"$(prefix)/lib/unicon2\" -c TLS_LibMain.cpp -o TLS_LibMain.o
+ $(CC) $(CFLAGS) -DUNICON2_LIB=\"$(prefix)/lib/unicon\" -c TLS_LibMain.cpp -o TLS_LibMain.o
app: $(APP_OBJS)
$(CC) $(APP_OBJS) $(LIBS) -o $(APP_PROG)
@@ -44,11 +44,8 @@ TLS_DoubleByteConvertor.o : TLS_DoubleBy
TLS_AsciiConvertor.o : TLS_AsciiConvertor.cpp
$(CC) $(CFLAGS) -c TLS_AsciiConvertor.cpp -o TLS_AsciiConvertor.o
-install: all
- mkdir -p $(prefix)/bin
- mkdir -p $(prefix)/lib/unicon2
- if [ -f $(APP_PROG) ]; then cp -f $(APP_PROG) $(prefix)/bin; fi
- if [ -f $(DLIB_PROG) ]; then cp -f $(DLIB_PROG) $(prefix)/lib/unicon2; fi
+install:
+ $(LIBTOOL) --mode=install $(BSD_INSTALL_DATA) $(DLIB_PROG) $(prefix)/lib
clean:
if test -e $(PROG); then rm -f $(PROG); fi
|