blob: d1f25b96923bcd3822cb226a9cde7e6929beffc7 (
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
|
$NetBSD: patch-am,v 1.2 2001/04/19 20:51:32 jtb Exp $
--- src/cps/makefile.orig Wed Oct 18 03:01:09 2000
+++ src/cps/makefile
@@ -12,35 +12,34 @@
all: cpsencode cpsdecode
install: all
- $(INSTALL) cpsencode$(EXE) $(bindir)
- $(INSTALL) cpsdecode$(EXE) $(bindir)
+ @$(LIBTOOL) $(INSTALL_PROGRAM) cpsencode$(EXE) $(bindir)
+ @$(LIBTOOL) $(INSTALL_PROGRAM) cpsdecode$(EXE) $(bindir)
uninstall:
\rm -f $(bindir)/cpsencode$(EXE)
\rm -f $(bindir)/cpsdecode$(EXE)
spotless: clean
- \rm -f *.a
+ \rm -fr .libs *.la
clean:
- rm -f *.o cpsencode$(EXE) cpsdecode$(EXE)
+ rm -f *.o *.lo cpsencode$(EXE) cpsdecode$(EXE)
#-------------------------------------------------------------------------------
# library
#-------------------------------------------------------------------------------
libuu.a: libuu.o
- $(AR) cvr libuu.a $?
- $(RANLIB) libuu.a
+ @$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $@ libuu.lo
cpsencode: cpsencode.o libuu.a
- $(CC) $(CFLAGS) $(LDFLAGS) cpsencode.o -L. -luu -o cpsencode
+ @$(LIBTOOL) $(CC) $(CFLAGS) $(LDFLAGS) $? -o $@
cpsdecode: cpsdecode.o libuu.a
- $(CC) $(CFLAGS) $(LDFLAGS) cpsdecode.o -L. -luu -o cpsdecode
+ @$(LIBTOOL) $(CC) $(CFLAGS) $(LDFLAGS) $? -o $@
.c.o:
- $(CC) -c $(CFLAGS) $<
+ @$(LIBTOOL) $(CC) $(CPPFLAGS) -c $(CFLAGS) $<
cpsencode.c: cps.h uu.h
|